java.lang.Object | |
↳ | android.app.Notification.Action |
Structure to encapsulate a named action that can be shown as part of this notification.
It must include an icon, a label, and a PendingIntent
to be fired when the action is
selected by the user.
Apps should use addAction(int, CharSequence, PendingIntent)
or addAction(Notification.Action)
to attach actions.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Notification.Action.Builder |
Builder class for Notification.Action objects.
|
||||||||||
Notification.Action.Extender |
Extender interface for use with extend(Notification.Action.Extender) .
|
||||||||||
Notification.Action.WearableExtender | Wearable extender for notification actions. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | |||||||||||
actionIntent | Intent to send when the user invokes this action. | ||||||||||
icon | Small icon representing the action. | ||||||||||
title | Title of the action. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates and returns a copy of this
Object .
| |||||||||||
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Get additional metadata carried around with this Action.
| |||||||||||
Get the list of inputs to be collected from the user when this action is sent.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Intent to send when the user invokes this action. May be null, in which case the action may be rendered in a disabled presentation by the system UI.
Creates and returns a copy of this Object
. The default
implementation returns a so-called "shallow" copy: It creates a new
instance of the same class and then copies the field values (including
object references) from this instance to the new instance. A "deep" copy,
in contrast, would also recursively clone nested objects. A subclass that
needs to implement this kind of cloning should call super.clone()
to create the new instance and then create deep copies of the nested,
mutable objects.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Get additional metadata carried around with this Action.
Get the list of inputs to be collected from the user when this action is sent. May return null if no remote inputs were added.
Flatten this object in to a Parcel.
out | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|