SensibillSDK
SensibillSDK.kt
Acts as main authentication point for Sensibill SDK. Contains main functionality to initialize, start and release SDK
How to use the library:
InitializationBuilder initializerBuilder = new InitializationBuilder(...)
SensibillSDK.INSTANCE.initialize(initializerBuilder.build());
SensibillSDK.INSTANCE.start(userIdentifier, new Startup() {
void onSDKStarted() {
// Start any activity related to the library
}
void onSDKFailed(LoginError loginError, String errorMessage) {
// SDK failed to start. Unable to use library
}
});
Functions
Adds a DocumentUploadObserver to be notified when document upload events occur.
Adds a ReceiptDataObserver to be notified when receipt events occur.
Adds an SDKErrorObserver to be notified when the TokenProvider encounters an error.
Adds a SDKLifecycleObserver to be notified when lifecycle events occur.
Adds a TransactionDataObserver to be notified when transaction events occur.
Backwards compatibility method to mimic Java Singleton reference usage
Get the current user session information.
Get the user identifier of the currently authenticated user
Perform necessary initialization that must be done before using the SDK.
Removes a DocumentUploadObserver from the list of observers
Removes a ReceiptDataObserver from the list of observers
Removes a SDKErrorObserver from the list of observers
Removes a SDKLifecycleObserver from the list of observers
Removes a TransactionDataObserver from the list of observers
Login to the library with the params retrieved by the Oauth provider.