public class

Inventory

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

Class Overview

An inventory item represents a choice for the user, your UI should be flexible and support a varying number of inventory items for the user to pick. It's important that you invoke the inventory when it's clicked by the user by passing it to invokeInventory(Context, Inventory).

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
Text getIconText()
Uri getIconUri()
Text getPrimary()
Text getSecondary()
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Methods

public Text getIconText ()

Returns
  • a text that should be rendered close to the icon or null

public Uri getIconUri ()

Returns
  • an Uri for the icon associated with this inventory item or null

public Text getPrimary ()

Returns
  • the primary line of text or null

public Text getSecondary ()

Returns
  • the primary line of text or null