FlutterLocalNotificationsPlatform class abstract

The interface that all implementations of flutter_local_notifications must implement.

Inheritance
  • Object
  • PlatformInterface
  • FlutterLocalNotificationsPlatform

Constructors

FlutterLocalNotificationsPlatform()
Constructs an instance of FlutterLocalNotificationsPlatform.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel(int id) → Future<void>
Cancels/removes the notification with the specified id.
cancelAll() → Future<void>
Cancels/removes all notifications. This applies to notifications that have been scheduled and those that have already been presented.
cancelAllPendingNotifications() → Future<void>
Cancels/removes all pending notifications.
getActiveNotifications() → Future<List<ActiveNotification>>
Returns the list of active notifications shown by the application that haven't been dismissed/removed.
getNotificationAppLaunchDetails() → Future<NotificationAppLaunchDetails?>
Returns info on if a notification had been used to launch the application.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pendingNotificationRequests() → Future<List<PendingNotificationRequest>>
Returns a list of notifications pending to be delivered/shown
periodicallyShow(int id, String? title, String? body, RepeatInterval repeatInterval) → Future<void>
Periodically show a notification using the specified interval.
periodicallyShowWithDuration(int id, String? title, String? body, Duration repeatDurationInterval) → Future<void>
Periodically show a notification using the specified custom duration interval.
show(int id, String? title, String? body, {String? payload}) → Future<void>
Show a notification with an optional payload that will be passed back to the app when a notification is tapped on.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ↔ FlutterLocalNotificationsPlatform
The default instance of FlutterLocalNotificationsPlatform to use.
getter/setter pair