restore

open override fun restore(context: Context, listener: SDKRestoreListener)

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


open override fun restore(context: Context): Boolean

Deprecated

Restoring without a listener is now deprecated.

Replace with

import com.getsensibill.core.SensibillCore
import com.getsensibill.core.SDKRestoreListener
SensibillSDK.restore(context, object : SDKRestoreListener { /* Implement methods */ })

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.

Return

True if the SDK was restored successfully, false otherwise

Parameters

context

A context reference