AndroidNotificationAction class

Mirrors the Action class in AndroidX.

See the offical docs at https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Action?hl=en for details.

Constructors

AndroidNotificationAction(String id, String title, {Color? titleColor, AndroidBitmap<Object>? icon, bool contextual = false, bool showsUserInterface = false, bool allowGeneratedReplies = false, List<AndroidNotificationActionInput> inputs = const <AndroidNotificationActionInput>[], bool cancelNotification = true, SemanticAction semanticAction = SemanticAction.none, bool invisible = false})
Constructs a AndroidNotificationAction object. The platform will create this object using Action.Builder. See the offical docs https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Action.Builder?hl=en for details.
const

Properties

allowGeneratedReplies → bool
Set whether the platform should automatically generate possible replies to add to RemoteInput#getChoices(). If the Action doesn't have a RemoteInput, this has no effect.
final
cancelNotification → bool
Set whether the notification should be canceled when this action is selected.
final
contextual → bool
Sets whether this Action is a contextual action, i.e. whether the action is dependent on the notification message body. An example of a contextual action could be an action opening a map application with an address shown in the notification.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → AndroidBitmap<Object>?
Icon to show for this action.
final
id → String
This ID will be sent back in the action handler defined in FlutterLocalNotificationsPlugin.
final
inputs → List<AndroidNotificationActionInput>
Add an input to be collected from the user when this action is sent.
final
invisible → bool
Sets the visibility of the action in the notification.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticAction → SemanticAction
The meaning to the action that hints at what the associated PedingIntent will do.
final
showsUserInterface → bool
Set whether or not this Action's PendingIntent will open a user interface.
final
title → String
The title of the action
final
titleColor → Color?
The color of the title of the action
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited