SetNetworkProxy static method
Sets the network proxy
to be used when contacting Cryptlex servers.
The proxy format should be: (protocol://)(username:password@)machine(:port)
Note: Proxy settings of the computer are automatically detected. So, in most of the cases you don't need to care whether your user is behind a proxy server or not.
@param proxy proxy string having correct proxy format The function throws a LexActivatorException on error.
Implementation
static int SetNetworkProxy({
required String proxy,
}) {
int status = _lexActivatorNative.SetNetworkProxy(
proxy,
);
if (LexStatusCodes.LA_OK != status) {
throw LexActivatorException(status);
}
return status;
}