NowSDK - Android
-
- UpdatedFeb 1, 2024
- 2 minutes to read
- Washington DC
- API reference
The NowSDK class is a singleton that provides the public API for the NowSDK. This class is the gateway to all Android SDK feature services.
Before initializing a feature service, you must initialize the SDK itself by calling NowSDK.configure(). For additional information on getting started with the Android NowSDK, refer to the ServiceNow Mobile SDK Developers Guide - Android.
NowSDK - configure(application: Application, configuration: NowSDKConfiguration)
Configures the NowSDK for use.
You must call this function before attempting to use any of the feature services provided by the SDK.
Name | Type | Description |
---|---|---|
application | Application | Reference to the hosting application object. |
configuration | NowServiceConfiguration | Object containing the information necessary to initialize the NowSDK. |
Type | Description |
---|---|
None | NowSDKError is thrown if the provided configuration is invalid. |
Example
The following code example shows how to call this function.
NowSDK - logout()
Clears all user sessions persisted in memory.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
None |
Example
The following code example shows how to call this function.