belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
NotificationCompat.Action
public
static
class
NotificationCompat.Action
extends Object
java.lang.Object | |
↳ | 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.
Summary
Nested classes | |
---|---|
class |
NotificationCompat.Action.Builder
Builder class for |
interface |
NotificationCompat.Action.Extender
Extender interface for use with |
@interface |
NotificationCompat.Action.SemanticAction
Provides meaning to an |
class |
NotificationCompat.Action.WearableExtender
Wearable extender for notification actions. |
Fields | |
---|---|
public
PendingIntent |
actionIntent
Intent to send when the user invokes this action. |
public
int |
icon
Small icon representing the action. |
public
CharSequence |
title
Title of the action. |
Public constructors | |
---|---|
NotificationCompat.Action(int icon, CharSequence title, PendingIntent intent)
|
Public methods | |
---|---|
PendingIntent
|
getActionIntent()
|
boolean
|
getAllowGeneratedReplies()
Return whether the platform should automatically generate possible replies for this
|