NotificationCompat.Action

public class 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 or addAction to attach actions.

Summary

Nested types

NotificationCompat.Action.Builder

Builder class for Action objects.

NotificationCompat.Action.Extender

Extender interface for use with extend.

NotificationCompat.Action.SemanticAction

Provides meaning to an Action that hints at what the associated PendingIntent will do.

NotificationCompat.Action.WearableExtender

Wearable extender for notification actions.

Constants

static final int

SemanticAction: Archive the content associated with the notification.

static final int

SemanticAction: Call a contact, group, etc.

static final int

SemanticAction: Delete the content associated with the notification.

static final int

SemanticAction: Mark content as read.

static final int

SemanticAction: Mark content as unread.

static final int

SemanticAction: Mute the content associated with the notification.

static final int

SemanticAction: No semantic action defined.

static final int

SemanticAction: Reply to a conversation, chat, group, or wherever replies may be appropriate.

static final int

SemanticAction: Mark content with a thumbs down.

static final int

SemanticAction: Mark content with a thumbs up.

static final int

SemanticAction: Unmute the content associated with the notification.

Public fields

PendingIntent