ws1-framework/com.airwatch.app/AWApplication
AWApplication¶
abstract class AWApplication : AWSDKApplication
To support SDK Login and Authentication, applications (which extends android.app.Application) have to extend this class. In case, your application doesn't extend Application, your android.app.Application subclass should implement AWSDKApplication and use AWSDKApplicationDelegate for delegation
Functions¶
| Name | Summary |
|---|---|
| getApplicationConfigType | open override fun getApplicationConfigType(): String If your application needs to fetch application-specific settings, override this method. Otherwise it can be ignored. |
| getApplicationConfigVersion | open override fun getApplicationConfigVersion(): String Returns the application configuration version. |
| getDelegate | open override fun getDelegate(): AWSDKApplication Gets the delegate instance. This is very helpful if using Kotlin's class delegation model and want to intercept a delegation call. |
| getFlags | open override fun getFlags(): AppSettingFlags Returns an instance of AppSettingFlags that contains all the flags the application needs to communicate with the SDK framework. These flags are in-memory and the app needs to take care of the storage and making it available when the SDK needs it. |
| getMainActivityIntent | abstract override fun getMainActivityIntent(): Intent Override this function to return the intent to launch the main activity. |
| getSDKConfigType | open override fun getSDKConfigType(): String If your application needs to fetch SDK settings, the default value is 21 unless it is a wrapped app, in which case it is 22. |
| isGeofencingSupported | open override fun isGeofencingSupported(): Boolean Indicates whether geofencing is supported by the application. |
| onPostCreate | open override fun onPostCreate() android.app.Application.onCreate may get called by another SDK process very frequently and cause unintended effects. To avoid this, place application-specific initialization in onPostCreate. onPostCreate will not be called during Direct boot mode. |
| onSSLPinningRequestFailure | abstract override fun onSSLPinningRequestFailure(host: String, serverCACert: X509Certificate?) Callback for SSL pinning request failure. |
| onSSLPinningValidationFailure | abstract override fun onSSLPinningValidationFailure(host: String, serverCACert: X509Certificate?) Callback for SSL pinning validation failure. |