public static interface

ButtonDropin.Listener

com.usebutton.sdk.ButtonDropin.Listener

Summary

Public Methods
abstract void onClick(ButtonDropin dropin)
This method will be called whenever the user taps the Button (Preview) and invokes the card or action attached to it when used in conjunction with setListener(Listener).
abstract void onPrepared(boolean willDisplay)

Public Methods

public abstract void onClick (ButtonDropin dropin)

This method will be called whenever the user taps the Button (Preview) and invokes the card or action attached to it when used in conjunction with setListener(Listener). Will never be called when used in prepareForDisplay(ButtonContext, Listener).

Parameters
dropin the instance of ButtonDropin that was tapped.

public abstract void onPrepared (boolean willDisplay)

Parameters
willDisplay will be called whenever a button is ready for display, with or without a promotion. willDisplay = true means that a button will be rendered. You can use this to e.g. show/hide UI components. This can be used per prepare call prepareForDisplay(ButtonContext, Listener) or for the view itself: setListener(Listener)