/
npm install capacitor-plugin-blockguard
npx cap sync
getVPNClientStatus()
connectVPN(...)
disconnectVPN()
getConnectionStatus()
mtlsFetch(...)
- Interfaces
getVPNClientStatus() => Promise<void>
connectVPN(options: ConnectVPNOptions) => Promise<void>
Param | Type |
---|---|
options |
ConnectVPNOptions |
disconnectVPN() => Promise<void>
getConnectionStatus() => Promise<ConnectionStatus>
Returns: Promise<ConnectionStatus>
mtlsFetch(options: MtlsFetchOptions) => Promise<MtlsFetchReturn>
Param | Type |
---|---|
options |
MtlsFetchOptions |
Returns: Promise<MtlsFetchReturn>
Prop | Type |
---|---|
method |
string |
url |
string |
body |
string |
clientCertificate |
string |
privateKey |
string |
Prop | Type |
---|---|
status |
string |
incomingBytes |
number |
outgoingBytes |
number |
Prop | Type |
---|---|
success |
boolean |
statusCode |
number |
body |
string |
Prop | Type |
---|---|
method |
string |
url |
string |
body |
string |
clientCertificate |
string |
privateKey |
string |