ws1-network/com.airwatch.gateway/GatewayManager
GatewayManager¶
open class GatewayManager
Provides APIs to configure the application for tunnelling (by starting/stopping the internal proxy tunnel). It can also be used to register listeners to be notified of the gateway configuration status.
Functions¶
| Name | Summary |
|---|---|
| autoConfigureProxy | open fun autoConfigureProxy() Automatically fetches and applies the gateway proxy configuration, then starts the local proxy. |
| getContext | open fun getContext(): Context Returns the application context used to initialize the GatewayManager. |
| getInstance | open fun getInstance(context: Context): GatewayManager Retrieve the singleton instance of GatewayManager. |
| getSdkException | open fun getSdkException(): AirWatchSDKException Returns the SDK exception that occurred and was saved during tunnel setup. |
| isRunning | open fun isRunning(): Boolean Indicates whether the local proxy is currently running. |
| loadConfiguration | open fun loadConfiguration(configuration: BaseGatewayConfig): Boolean Validate and load the proxy configuration. |
| registerGatewayStatusListener | open fun registerGatewayStatusListener(gatewayStatusListener: IGatewayStatusListener): Boolean Add a status listener for the proxy, if not already registered. |
| start | open fun start(): Boolean Starts the local proxy based on the configuration provided. |
| startTunnel | open fun startTunnel() Starts the Tunnel SDK and, once it is running, starts the local proxy. |
| stop | open fun stop(): Boolean Stops the local proxy. |
| stopTunnel | open fun stopTunnel() Stops the Tunnel SDK and resets the tunnel configuration. |
| unregisterGatewayStatusListener | open fun unregisterGatewayStatusListener(gatewayStatusListener: IGatewayStatusListener): Boolean Remove a status listener for the proxy, if registered. |