NotificationController class abstract
A controller of user notifications based on UserTasks. Works closely with the AppTaskController.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
pendingNotificationRequestsCount
→ Future<
int> -
The number of pending notifications.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelNotification(
UserTask task) → Future< void> -
Cancel (i.e., remove) the notification for the
task
. -
initialize(
) → Future< void> - Initialize and set up the notification controller. Also tries to get permissions to send notifications.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scheduleNotification(
UserTask task) → Future< void> -
Schedule a notification for a
task
at thetask.triggerTime
. -
sendNotification(
UserTask task) → Future< void> -
Send an immediate notification for a
task
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CHANNEL_DESCRIPTION → const String
- The description of the notification channel as shown in the Settings on Android phones.
- CHANNEL_ID → const String
- The id of the notification channel.
- CHANNEL_NAME → const String
- The name of the notification channel as shown in the Settings on Android phones.
- PENDING_NOTIFICATION_LIMIT → const int
- The upper limit of scheduled notification on iOS.