configure
Configure and initialize the Live Status module.
If your app wants to use the Live Status notification for pickup, initialize the live status module after initializing the Flybuy core and pickup modules.
See Android setup guide for additional details including all setup steps.
Example:
class MyApplication: Application() {}
override fun onCreate() {
super.onCreate()
FlyBuyCore.configure(this)
PickupManager.getInstance().configure(this) // <-- Enable Pickup
val liveStatusOptions = LiveStatusOptions.Builder()
.setStatusTintColor(ContextCompat.getColor(this, R.color.liveStatusTintColorLight))
// Optionally set dark mode color. If not set, the light mode color will be used for both.
.setStatusTintColorDarkMode(ContextCompat.getColor(this, R.color.liveStatusTintColorDark))
LiveStatusManager.getInstance().configure(this, liveStatusOptions.build()) // <-- Enable Live Status
}
}Content copied to clipboard