public class

NotificationButtonAction

extends Object
implements Parcelable
java.lang.Object
   ↳ android.app.NotificationButtonAction

Class Overview

A class that store the view id and related pending Intenet, this is used for notification

Summary

Constants
int NUM_BUTTONS
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<NotificationButtonAction> CREATOR Parcelable.Creator that instantiates NotificationButtonAction objects
Public Constructors
NotificationButtonAction()
Public Methods
boolean add(int viewId, PendingIntent pendingIntent)
Store the viewId and pendingIntent into particular button id param viewId The view id in related layout param pendingIntent The PendingIntent for this viewId return true - success to add a button action false - fail to add a button action
int describeContents()
Implememnt Parcelable for IPC usage
PendingIntent getPendingIntent(int buttonId)
Get mPendingIntent for particular button id
int getViewId(int buttonId)
Get mViewId for particular button id
boolean isEnable(int buttonId)
Make sure this particular button id is workable or not
boolean isEnable()
Make sure that is there any button action was set or not
String toString()
void writeToParcel(Parcel out, int flags)
Implememnt Parcelable for IPC usage
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int NUM_BUTTONS

Constant Value: 3 (0x00000003)

Fields

public static final Creator<NotificationButtonAction> CREATOR

Parcelable.Creator that instantiates NotificationButtonAction objects

Public Constructors

public NotificationButtonAction ()

Public Methods

public boolean add (int viewId, PendingIntent pendingIntent)

Store the viewId and pendingIntent into particular button id param viewId The view id in related layout param pendingIntent The PendingIntent for this viewId return true - success to add a button action false - fail to add a button action

public int describeContents ()

Implememnt Parcelable for IPC usage

public PendingIntent getPendingIntent (int buttonId)

Get mPendingIntent for particular button id

public int getViewId (int buttonId)

Get mViewId for particular button id

public boolean isEnable (int buttonId)

Make sure this particular button id is workable or not

public boolean isEnable ()

Make sure that is there any button action was set or not

public String toString ()

Since: API Level

public void writeToParcel (Parcel out, int flags)

Implememnt Parcelable for IPC usage