ButtonMerchant

Primary entry point for the Button merchant library.

Types

Link copied to clipboard
An interface to receive callbacks each time the attribution token value has been updated.

Functions

Link copied to clipboard
An interface through which user activities can be reported.
Link copied to clipboard
Registers attribution token listener.
Link copied to clipboard
open fun clearAllData(@NonNull context: Context)
Discards the current session and all persisted data.
Link copied to clipboard
open fun configure(@NonNull context: Context, @NonNull applicationId: String)
Configures ButtonMerchant with your application Id.
Link copied to clipboard
open fun features(): Features
An interface through which library features can be enabled/disabled.
Link copied to clipboard
The attributionToken from the last inbound Button attributed Intent.
Link copied to clipboard
Checks to see if the user visited a url prior to installing your app.
Link copied to clipboard
Unregisters attribution token listener.
Link copied to clipboard
open fun reportEvent(@NonNull context: Context, @NonNull name: String)

open fun reportEvent(@NonNull context: Context, @NonNull name: String, @Nullable properties: Map<String, String>)
Reports an event and associated properties to Button
Link copied to clipboard
open fun reportOrder(@NonNull context: Context, @NonNull order: Order, @Nullable orderListener: OrderListener)
Reports an order to Button
Link copied to clipboard
open fun trackIncomingIntent(@NonNull context: Context, @NonNull intent: Intent)
Checks the passed Intent for a Button attribution and if present stores the token.