NotificationAction class
Structure to encapsulate a named action that can be shown as part of a notification.
It must include an icon, a label, and a PendingIntent to be fired when the action is selected by the user.
See: https://developer.android.com/reference/android/app/Notification.Action
Constructors
- NotificationAction({PendingIntent intent, Icon icon, String title })
Properties
- icon → Icon
-
Small icon representing the action. [...]
final
- intent → PendingIntent
-
Intent to send when the user invokes this action. [...]
final
- title → String
-
Title of the action. [...]
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Constants
- SEMANTIC_ACTION_ARCHIVE → const int
-
See: https://developer.android.com/reference/android/app/Notification.Action.html#SEMANTIC_ACTION_ARCHIVE
5
- SEMANTIC_ACTION_CALL → const int
-
See: https://developer.android.com/reference/android/app/Notification.Action.html#SEMANTIC_ACTION_CALL
10
- SEMANTIC_ACTION_DELETE → const int
-
See: https://developer.android.com/reference/android/app/Notification.Action.html#SEMANTIC_ACTION_DELETE
4
- SEMANTIC_ACTION_MARK_AS_READ → const int
-
See: https://developer.android.com/reference/android/app/Notification.Action.html#SEMANTIC_ACTION_MARK_AS_READ
2
- SEMANTIC_ACTION_MARK_AS_UNREAD → const int
-
See: https://developer.android.com/reference/android/app/Notification.Action.html#SEMANTIC_ACTION_MARK_AS_UNREAD
3
- SEMANTIC_ACTION_MUTE → const int
-
See: https://developer.android.com/reference/android/app/Notification.Action.html#SEMANTIC_ACTION_MUTE
6
- SEMANTIC_ACTION_NONE → const int
-
See: https://developer.android.com/reference/android/app/Notification.Action.html#SEMANTIC_ACTION_NONE
0
- SEMANTIC_ACTION_REPLY → const int
-
See: https://developer.android.com/reference/android/app/Notification.Action.html#SEMANTIC_ACTION_REPLY
1
- SEMANTIC_ACTION_THUMBS_DOWN → const int
-
See: https://developer.android.com/reference/android/app/Notification.Action.html#SEMANTIC_ACTION_THUMBS_DOWN
9
- SEMANTIC_ACTION_THUMBS_UP → const int
-
See: https://developer.android.com/reference/android/app/Notification.Action.html#SEMANTIC_ACTION_THUMBS_UP
8
- SEMANTIC_ACTION_UNMUTE → const int
-
See: https://developer.android.com/reference/android/app/Notification.Action.html#SEMANTIC_ACTION_UNMUTE
7