public class

AppAction

extends Object
implements Parcelable
java.lang.Object
   ↳ com.usebutton.sdk.models.AppAction

Class Overview

This is the main class holding all information regarding an AppAction, if you're implementing a custom button UI please refer to the Custom Button UI guide for more information. See getAction(String, ButtonContext, Button.ActionListener) and Preview for code examples.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
static AppAction fromDTO(ButtonDTO dto)
Footer getFooter()
Header getHeader()
ListBody getListBody()
MetaInfo getMeta()
Preview getPreview()
This object holds information about the preview for this app action, you will typically render this text & icon as a button or element that the user can click Most partners would just start the regular Button Card flow by invoking invokePreview(Context).
Product getProduct()
boolean hasGroups()
boolean hasProduct()
void invokeFooter(Context context)
void invokeInventory(Context context, Inventory inventory)
void invokePreview(Context context)
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Methods

public static AppAction fromDTO (ButtonDTO dto)

public Footer getFooter ()

public Header getHeader ()

public ListBody getListBody ()

public MetaInfo getMeta ()

public Preview getPreview ()

This object holds information about the preview for this app action, you will typically render this text & icon as a button or element that the user can click Most partners would just start the regular Button Card flow by invoking invokePreview(Context).

public Product getProduct ()

public boolean hasGroups ()

public boolean hasProduct ()

public void invokeFooter (Context context)

public void invokeInventory (Context context, Inventory inventory)

public void invokePreview (Context context)

public void writeToParcel (Parcel dest, int flags)