Starting SDK
- Before starting the SDK, it must be in an initialized state (How to Initialize SDK)
- To start SDK, the following method must be called:
SensibillSDK.getInstance().start()
NOTE: By the Sensibill SDK lifecycle rules, ifSensibillSDK.initialize()
and / orSensibillSDK.start()
have already been called in this instance of the app,SensibillSDK.release()
should be called before re-initializing, and the entire initialization and starting procedure should be performed again.
SensibillSDK.getInstance().start(user_identifier, new SDKStartup() {
@Override
public void onSDKStarted() {
// SDK Logged in
}
@Override
public void onSDKFailed(LoginError sdkLoginError, String message) {
// SDK failed to login
}
});
-
Parameters:
Name Description user_identifier Unique string to identify distinct Sensibill User. This user identifier is only used by the SDK for caching purposes. Users are identified by the SDK and API by their token (from TokenProvider
).SDKStartup Callback function passed to determine when SDK has been successfully started