com.getsensibill.core / SensibillSDK / restore
restore
fun ~~restore~~(context: Context): Boolean
Deprecated: Restoring without a listener is now deprecated.
Attempt to restore the active state of the SDK.
This method will both initialize and start the SDK, given that there is a valid state to restore to. Will only perform action if the SDK is uninitialized or stopped.
Parameters
context - A context reference
Return True if the SDK was restored successfully, false otherwise
fun restore(context: Context, listener: SDKRestoreListener): Unit
Attempt to restore the active state of the SDK.
This method will both initialize and start the SDK, given that there is a valid state to restore to. Will only perform action if the SDK is uninitialized or stopped.
Parameters
context - A context reference
listener - a listener to be notified when restoration completes