Button Merchant
class ButtonMerchant
Primary entry point for the Button merchant library.
Types
Link copied to clipboard
interface AttributionTokenListener
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
open fun addAttributionTokenListener(@NonNull context: Context, @NonNull listener: ButtonMerchant.AttributionTokenListener)
Registers attribution token listener.
Link copied to clipboard
Discards the current session and all persisted data.
Link copied to clipboard
Link copied to clipboard
open fun handlePostInstallIntent(@NonNull context: Context, @NonNull listener: PostInstallIntentListener)
Checks to see if the user visited a url prior to installing your app.
Link copied to clipboard
open fun removeAttributionTokenListener(@NonNull context: Context, @NonNull listener: ButtonMerchant.AttributionTokenListener)
Unregisters attribution token listener.
Link copied to clipboard
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
Checks the passed
Intent
for a Button attribution and if present stores the token.