ws1-framework/com.airwatch.sdk.context/SDKContext
SDKContext¶
abstract class SDKContext
SDKContext is the entry point for the SDK. It provides the methods to initialize the SDK, fetch the SDK configuration, fetch the app configuration, and more.
See also¶
- com.airwatch.sdk.context.SDKContextImpl
Functions¶
| Name | Summary |
|---|---|
| fetchAndExecuteComplianceSettings | abstract fun fetchAndExecuteComplianceSettings(listener: IFutureSuccessCallback<Boolean>) Initiates compliance settings fetch and executes restrictions and compliance tasks with the new/saved settings payload or clears any compliance related actions if none exists. |
| fetchAppSettingsWithConfigTypeAndVersion | abstract fun fetchAppSettingsWithConfigTypeAndVersion(listener: ISdkFetchSettingsListener, configType: String, configVersion: String) Fetch App settings with given configType and configVersion. |
| fetchSDKSettings | abstract fun fetchSDKSettings(listener: ISdkFetchSettingsListener) Initiates SDK settings fetch. |
| getAppConfiguration | abstract fun getAppConfiguration(): AppConfiguration Return AppConfiguration object with latest SDK configuration. |
| getCurrentState | abstract fun getCurrentState(): SDKContext.State Returns the current state of the SDKContextManager. |
| getKeyManager | abstract fun getKeyManager(): MasterKeyManager Return initialized MasterKeyManager. |
| getSDKConfiguration | abstract fun getSDKConfiguration(): SDKConfiguration Return SDKConfiguration object with latest SDK configuration. |
| init | abstract fun init(context: Context) abstract fun init(context: Context, passcode: Array<Byte>) abstract fun init(context: Context, keyManager: MasterKeyManager) Initialize an instance of SDKContextManager. |