FlyBuyCore

object FlyBuyCore

Main class for accessing core Flybuy functionality (customer, orders, and sites).

Properties

Link copied to clipboard

Get the current app instance ID. To be notified of changes to the app instance ID, register a listener using setAppInstanceIDUpdateListener.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun configure(application: Application, configOptions: ConfigOptions)

Initialize and configure the Flybuy SDK using the application and ConfigOptions.

fun configure(application: Application, appTokenKey: String)
fun configure(context: Context, appTokenKey: String)
fun configure(application: Application, baseUrl: String?, appTokenKey: String, logLevel: Int = FlyBuyLogging.DEFAULT_LOG_LEVEL, internalLogLevel: Int = FlyBuyLogging.DEFAULT_INTERNAL_LOG_LEVEL)
Link copied to clipboard
fun getInstance(appAuthId: String? = null): FlyBuyInstance
Link copied to clipboard

Handles the response to clicking a notification, looking up any associated data. This will open a deep link if present.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onMessageReceived(data: Map<String, String>, callback: (SdkError?) -> Unit?)

Call when a push message is received.

Link copied to clipboard

Call when the push token for the app changes.

Link copied to clipboard

Set a callback to be notified when the app instance ID is updated.