flutter_local_notifications library Null safety

Classes

ActiveNotification
Contains details on active Android notification that is currently displayed within the status bar.
AndroidBitmap<T>
Represents a bitmap on Android.
AndroidFlutterLocalNotificationsPlugin
Android implementation of the local notifications plugin.
AndroidInitializationSettings
Plugin initialization settings for Android.
AndroidNotificationChannel
Settings for Android notification channels.
AndroidNotificationChannelGroup
A group of related Android notification channels.
AndroidNotificationDetails
Contains notification details specific to Android.
AndroidNotificationSound
Represents an Android notification sound.
AndroidServiceForegroundType
The available foreground types for an Android service.
AndroidServiceStartType
The available start types for an Android service.
AssetsLinuxIcon
Represents an icon from the Flutter Assets directory.
AssetsLinuxSound
Represents a sound from the Flutter Assets directory.
BigPictureStyleInformation
Used to pass the content for an Android notification displayed using the big picture style.
BigTextStyleInformation
Used to pass the content for an Android notification displayed using the big text style.
BitmapFilePathAndroidIcon
Represents a file path to a bitmap that should be used for as an icon on Android.
ByteArrayAndroidBitmap
Represents a base64 encoded AndroidBitmap.
ByteArrayAndroidIcon
Represents a bitmap asset belonging to the Flutter application that should be used for as an icon on Android.
ByteDataLinuxIcon
Represents an icon from a raw image data bytes, see LinuxRawIconData.
ContentUriAndroidIcon
Represents a content URI that should be used for as an icon on Android.
Day
The days of the week.
DefaultStyleInformation
The default Android notification style.
DrawableResourceAndroidBitmap
Represents a drawable resource belonging to the Android application that should be used as a bitmap on Android.
DrawableResourceAndroidIcon
Represents a drawable resource belonging to the Android application that should be used as an icon on Android.
FilePathAndroidBitmap
Represents a file path that should be used for a bitmap on Android.
FlutterBitmapAssetAndroidIcon
Represents a bitmap asset belonging to the Flutter application that should be used for as an icon on Android.
FlutterLocalNotificationsPlugin
Provides cross-platform functionality for displaying local notifications. [...]
Importance
The available importance levels for Android notifications. [...]
InboxStyleInformation
Used to pass the content for an Android notification displayed using the inbox style.
InitializationSettings
Settings for initializing the plugin for each platform.
IOSFlutterLocalNotificationsPlugin
iOS implementation of the local notifications plugin.
IOSInitializationSettings
Plugin initialization settings for iOS.
IOSNotificationAttachment
Represents an attachment for an iOS notification.
IOSNotificationDetails
Configures notification details specific to iOS.
LinuxFlutterLocalNotificationsPlugin
A stub implementation to satisfy compilation of multi-platform packages that depend on flutter_local_notifications_linux. This should never actually be created. [...]
LinuxInitializationSettings
Plugin initialization settings for Linux.
LinuxNotificationCategory
Categories of notifications.
LinuxNotificationDetails
Configures notification details specific to Linux. The system may not support all features.
LinuxNotificationIcon
Represents Linux notification icon.
LinuxNotificationLocation
Represents the location on the screen that the notification should point to.
LinuxNotificationSound
Represents Linux notification sound.
LinuxNotificationTimeout
The timeout of the Linux notification.
LinuxNotificationUrgency
The urgency level of the Linux notification.
LinuxRawIconData
Represents an icon in the raw image data.
LinuxServerCapabilities
Represents capabilities, implemented by the Linux notification server.
MacOSFlutterLocalNotificationsPlugin
macOS implementation of the local notifications plugin.
MacOSInitializationSettings
Plugin initialization settings for macOS.
MacOSNotificationAttachment
Represents an attachment for an macOS notification.
MacOSNotificationDetails
Configures notification details specific to macOS.
MediaStyleInformation
Used to pass the content for an Android notification displayed using the media style. [...]
Message
Represents a message used in Android messaging style notifications.
MessagingStyleInformation
Used to pass the content for an Android notification displayed using the messaging style.
NotificationAppLaunchDetails
Contains details on the notification that launched the application.
NotificationDetails
Contains notification details specific to each platform.
PendingNotificationRequest
Details of a pending notification that has not been delivered.
Person
Details of a person e.g. someone who sent a message.
Priority
Priority for notifications on Android 7.1 and lower.
RawResourceAndroidNotificationSound
Represents a raw resource belonging to the Android application that should be used for the notification sound. [...]
StyleInformation
Abstract class for defining an Android notification style
ThemeLinuxIcon
Represents a system theme icon. See https://www.freedesktop.org/wiki/Specifications/icon-naming-spec/ for more help.
ThemeLinuxSound
Represents a system theme sound. See https://www.freedesktop.org/wiki/Specifications/sound-theme-spec/ for more help.
Time
Used for specifying a time in 24 hour format.
UriAndroidNotificationSound
Represents a URI on the Android device that should be used for the notification sound. [...]

Enums

AndroidNotificationChannelAction
The available actions for managing notification channels.
AndroidNotificationStyle
The available notification styles on Android.
DateTimeComponents
The components of a date and time representations.
GroupAlertBehavior
The available alert behaviours for grouped notifications.
LinuxHintValueType
Represents the notification hint value type.
LinuxIconType
Specifies the Linux notification icon type.
LinuxSoundType
Specifies the Linux notification sound type.
NotificationVisibility
Defines the notification visibility on the lockscreen.
RepeatInterval
The available intervals for periodically showing notifications.
UILocalNotificationDateInterpretation
Describes how the fire date (date used to schedule a notification) of the UILocalNotification on iOS is interpreted. [...]

Typedefs

DidReceiveLocalNotificationCallback = void Function(int id, String? title, String? body, String? payload)
Signature of the callback that is triggered when a notification is shown whilst the app is in the foreground. [...]
SelectNotificationCallback = void Function(String? payload)
Signature of callback passed to initialize that is triggered when user taps on a notification.