SmartMsSDK

open class SmartMsSDK

The entry point of SmartMS SDK. It holds common configuration and state for the Smartms APIs

initializeApp initializes the application context. This method must be invoked at application startup otherwise a RuntimeException will be thrown

Functions

Link copied to clipboard
open fun getAppIconBadger(): IAppIconBadgerProvider
Link copied to clipboard
open fun getInstance(): SmartMsSDK
SmartMsSDK singleton getter
Link copied to clipboard
open fun getRevision(): Int
Gets the SDK revision.
Link copied to clipboard
open fun getVersion(): String
Gets the SDK version.
Link copied to clipboard
open fun initAppIconBadger(@NonNull appIconBadgerConfig: AppIconBadgerConfig)
Link copied to clipboard
open fun initCoreUpgradeCallback(@Nullable coreUpgradeCallback: ICoreUpgradeCallback)
initialize a callback to listen to STW Core upgrade.
Link copied to clipboard
open fun initEncryptionConfig(fileEncryptionEnabled: Boolean, dbEncryptionEnabled: Boolean)
Called to initialize the file and database encryption.
Link copied to clipboard
open fun initExternalLinkConfig(@NonNull externalLinkConfig: ExternalLinkConfig)
Link copied to clipboard
open fun initializeApp(    @NonNull applicationContext: Context,     @Nullable applicationStateListener: STWApplicationStateListener,     @Nullable serviceConfig: STWServiceConfig)
Initializes the application context &all required callbacks.
open fun initMyBusinessUploadServiceNotificationConfig(@NonNull myBusinessUploadServiceNotificationConfig: MyBusinessUploadServiceNotificationConfig)
Initialize the configuration related to the upload attachment service config
Link copied to clipboard
open fun initPushConfig(@NonNull pushConfig: PushConfig)
Link copied to clipboard
open fun isApplicationActive(): Boolean
When click on switch button, the Agnet Communicator module will work to disable this application and put another application in front.
Link copied to clipboard
open fun isDatabaseUpgrading(): Boolean
either the database is upgrading or not
Link copied to clipboard
open fun isSDKUpgrading(): Boolean
either the database is upgrading or not
Link copied to clipboard
open fun listenToDatabaseUpgrade(@NonNull iDatabaseUpgradeCallback: IDatabaseUpgradeCallback)
initialize a callback to listen to database upgrade.
Link copied to clipboard
open fun listenToSDKMigration(@Nullable iMigrationCallback: IMigrationCallback)
initialize a callback to listen to the SDK migration/update/upgrading.
Link copied to clipboard
open fun registerMainServiceListener(@NonNull listener: STWServiceListener)
Register the listener to handle main service events.
Link copied to clipboard
open fun setApplicationActive(isApplicationActive: Boolean)
Link copied to clipboard
open fun setupMyBusinessConfiguration(@NonNull myBusinessConfiguration: MyBusinessConfiguration)
Setup the configuration related to My business module
Link copied to clipboard
open fun unregisterServiceListener(@NonNull listener: STWServiceListener)
Unregister the service event listener