Initialization
Call ActiveCustomerSDKFactory.init() to receive an instance of BringgActiveCustomerSDKClient
BringgSDKActiveCustomerClient
This interface exposes the following methods:
- getActiveCustomerActions - API for sdk actions (login, start order, etc.)
- isLoggedIn LiveData
- isOnline LiveData
- activeTask LiveData
Initialization Dependencies
The init method of ActiveCustomerSDKFactory receives 3 mandatory params:
- Context: regular Android Context.
- NotificationProvider
- SdkSettings
NotificationProvider
This interface is required by the initiating class to provide a foreground notification for the sdk to be able to run in the background.
*Both methods can return the same notification
getShiftNotification
getBackgroundLongProcessNotification
SDKSettings
use SdkSettings.Builder().build() for default config or configure the experience to match your use-case
Updated about 2 years ago