public static interface

Button.ActionListener

com.usebutton.sdk.Button.ActionListener

Class Overview

Callback interface for getAction(String, ButtonContext, ActionListener) which will call onAction(AppAction) if an action is available given the provided Button ID and ButtonContext.

Summary

Public Methods
abstract void onAction(AppAction action)
Called if an AppAction is found for the provided Button ID and ButtonContext, you can use the provided action to display this Button or any of its content (list of inventory, product images etc).
abstract void onNoAction()

Public Methods

public abstract void onAction (AppAction action)

Called if an AppAction is found for the provided Button ID and ButtonContext, you can use the provided action to display this Button or any of its content (list of inventory, product images etc). A full implementation can be seen here getAction(String, ButtonContext, ActionListener)

public abstract void onNoAction ()