flutter_foreground_task library
Classes
- AndroidNotificationOptions
- Notification options for Android platform.
- FlutterForegroundTask
- A class that implement foreground task and provide useful utilities.
- ForegroundTaskOptions
- Data class with foreground task options.
- IOSNotificationOptions
- Notification options for iOS platform.
- NotificationChannelImportance
- The importance of the notification channel. See https://developer.android.com/training/notify-user/channels?hl=ko#importance
- NotificationIconData
- Data for setting the notification icon.
- NotificationPriority
- Priority of notifications for Android 7.1 and lower.
- NotificationVisibility
- The level of detail displayed in notifications on the lock screen.
- WillStartForegroundTask
- A widget used when you want to start a foreground task when trying to minimize or close the app. Declare on top of the Scaffold widget.
- WithForegroundTask
- A widget that prevents the app from closing when a foreground task is running. Declare on top of the Scaffold widget.
Enums
- ResourcePrefix
- The resource prefix of the notification icon.
- ResourceType
- The resource type of the notification icon.
Typedefs
-
DestroyCallback
= Future<
void> Function(DateTime timestamp) - Called with a timestamp value as a task destroy callback function.
-
TaskCallback
= Future<
void> Function(DateTime timestamp, SendPort? sendPort) - Called with a timestamp value as a task callback function.
Exceptions / Errors
- ForegroundTaskException
- ForegroundTaskException