java.lang.Object | ||
↳ | android.support.v4.app.NotificationCompatBase.Action | |
↳ | android.support.v4.app.NotificationCompat.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. Action buttons won't appear on platforms prior to Android 4.1.
Apps should use
addAction(int, CharSequence, PendingIntent)
or
addAction(NotificationCompat.Action)
to attach actions.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
NotificationCompat.Action.Builder |
Builder class for
NotificationCompat.Action
objects.
|
|||||||||
|
NotificationCompat.Action.Extender |
Extender interface for use with
extend(NotificationCompat.Extender)
.
|
|||||||||
|
NotificationCompat.Action.WearableExtender | Wearable extender for notification actions. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Get additional metadata carried around with this Action.
|
||||||||||
|
Get the list of inputs to be collected from the user when this action is sent.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
||||||||||
|
|
||||||||||
|
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v4.app.NotificationCompatBase.Action
|
|||||||||||
From class
java.lang.Object
|
Intent to send when the user invokes this action. May be null, in which case the action may be rendered in a disabled presentation.
Small icon representing the 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.