ws1-network/com.airwatch.gateway.config/GatewayConfigManager
GatewayConfigManager¶
open class GatewayConfigManager
Provides configuration information about gateway settings - standard proxy etc.
Functions¶
| Name | Summary |
|---|---|
| getAppTunnelType | open fun getAppTunnelType(): ProxySetupType Returns the configured app tunnel setup type. |
| getContext | open fun getContext(): Context Returns the Context associated with this manager. |
| getDeviceServicesUrl | open fun getDeviceServicesUrl(): String Returns the configured Device Services URL. |
| getDeviceUid | open fun getDeviceUid(): String Returns the device unique identifier, fetching it once and caching it. |
| getInstance | open fun getInstance(): GatewayConfigManager Returns the already-initialized singleton GatewayConfigManager. |
| getLocalProxyPort | open fun getLocalProxyPort(): Int Returns the local proxy port from the current configuration. |
| getPackageName | open fun getPackageName(): String Returns the host application's package name. |
| getPacV2RoutingMode | open fun getPacV2RoutingMode(): PacV2RoutingMode This API is used to get the PAC Mode set in the KVP for PAC V2 |
| getProxyConfig | open fun getProxyConfig(): BaseGatewayConfig Returns the currently stored proxy configuration. |
| getString | open fun getString(resId: Int): String Returns the localized string for the given resource id. |
| getUseLegacySettings | open fun getUseLegacySettings(): Boolean Indicates whether legacy proxy settings should be used. |
| getWebView | open fun getWebView(): WebView Returns the WebView currently associated with this manager, if any. |
| hasValidConfig | open fun hasValidConfig(): Boolean Indicates whether a valid proxy configuration is currently loaded. |
| init | open fun init(context: Context): GatewayConfigManager Initializes and returns the singleton GatewayConfigManager. |
| isAppTunnelEnabled | open fun isAppTunnelEnabled(): Boolean Indicates whether app tunnelling is enabled in the current configuration. |
| isConfigChanged | open fun isConfigChanged(): Boolean Indicates whether the configuration has changed since it was last applied. |
| isPacV2Enabled | open fun isPacV2Enabled(): Boolean This API is used to check whether PacV2 is enabled via the KVP PAC URL |
| isStdEnabled | open fun isStdEnabled(): Boolean Indicates whether the standard (basic username/password) proxy setup is enabled. |
| isTunnelSdkEnabled | open fun isTunnelSdkEnabled(): Boolean Indicates whether the Tunnel SDK proxy setup is enabled. |