IOSFlutterLocalNotificationsPlugin class
iOS implementation of the local notifications plugin.
- Inheritance
-
- Object
- PlatformInterface
- FlutterLocalNotificationsPlatform
- IOSFlutterLocalNotificationsPlugin
Constructors
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.
inherited
-
cancelAll(
) → Future< void> -
Cancels/removes all notifications. This applies to notifications that have been scheduled and those that have already been presented.
inherited
-
checkPermissions(
) → Future< NotificationsEnabledOptions?> - Returns whether the app can post notifications and what kind of.
-
getActiveNotifications(
) → Future< List< ActiveNotification> > -
Returns the list of active notifications shown by the application that
haven't been dismissed/removed.
inherited
-
getNotificationAppLaunchDetails(
) → Future< NotificationAppLaunchDetails?> -
Returns info on if a notification had been used to launch the application.
inherited
-
initialize(
DarwinInitializationSettings initializationSettings, {DidReceiveNotificationResponseCallback? onDidReceiveNotificationResponse, DidReceiveBackgroundNotificationResponseCallback? onDidReceiveBackgroundNotificationResponse}) → Future< bool?> - Initializes the plugin.
-
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
inherited
-
periodicallyShow(
int id, String? title, String? body, RepeatInterval repeatInterval, {DarwinNotificationDetails? notificationDetails, String? payload}) → Future< void> -
Periodically show a notification using the specified interval.
override
-
periodicallyShowWithDuration(
int id, String? title, String? body, Duration repeatDurationInterval) → Future< void> -
Periodically show a notification using the specified custom duration
interval.
inherited
-
requestPermissions(
{bool sound = false, bool alert = false, bool badge = false, bool provisional = false, bool critical = false}) → Future< bool?> - Requests the specified permission(s) from user and returns current permission status.
-
show(
int id, String? title, String? body, {DarwinNotificationDetails? notificationDetails, 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.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
zonedSchedule(
int id, String? title, String? body, TZDateTime scheduledDate, DarwinNotificationDetails? notificationDetails, {required UILocalNotificationDateInterpretation uiLocalNotificationDateInterpretation, String? payload, DateTimeComponents? matchDateTimeComponents}) → Future< void> - Schedules a notification to be shown at the specified time in the future in a specific time zone.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited