local_notifications/ny_local_notifications library
Classes
- AndroidNotificationConfig
- Configuration options specific to Android notifications.
- IOSNotificationConfig
- Configuration options specific to iOS notifications.
- LocalNotification
- A class for creating and sending local notifications on iOS and Android.
- NotificationAttachment
- Represents an attachment for a notification.
Functions
-
localNotification(
String title, String body) → LocalNotification -
Creates a new LocalNotification with the given
titleandbody. -
pushNotification(
String title, String body) → LocalNotification -
Creates a new LocalNotification with the given
titleandbody.
Typedefs
- PushNotification = LocalNotification
- Backwards compatibility alias for LocalNotification.
- PushNotificationAttachments = NotificationAttachment
- Backwards compatibility alias for NotificationAttachment.
Exceptions / Errors
- NotificationException
- Exception thrown when a notification operation fails.