Skip to content

ws1-network/com.airwatch.gateway.ui/GatewayBaseActivity

GatewayBaseActivity

open class GatewayBaseActivity

Base Activity to be subclassed by activities where tunnelling feature is required. This class manages the proxy's lifecycle from the activities lifecycle methods. This class also notifies the gateway component's lifecycle and errors. For example, if apps would like to trigger their network requests after the SDK's tunnelling is configured, then apps can subclass this class, override the proxyStatusUpdated method and wait for STATE_STARTED If applications cannot subclass this class, they can use SDKGatewayActivityDelegate as a delegate for all the Activity lifecycle methods.

Functions

Name Summary
isTunnelingEnabled open fun isTunnelingEnabled(): Boolean
Indicates whether the tunnelling feature is enabled for this activity.
proxyStatusUpdated open fun proxyStatusUpdated(proxyStatus: Int)
Receives gateway status update status