flutter_foreground_task library

Classes

AndroidForegroundServiceType
Constant to specify the foreground service type on Android 14 and higher.
AndroidNotificationOptions
Notification options for Android platform.
FlutterForegroundTask
A class that implements foreground task and provides useful utilities.
ForegroundTaskOptions
Data class with foreground task options.
IOSNotificationOptions
Notification options for iOS platform.
NotificationButton
The button to display in the notification.
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.
TaskHandler
A class that implements a task handler.
WillStartForegroundTask
A widget that can start the foreground service when the app is minimized or closed.
WithForegroundTask
A widget that prevents the app from closing when the foreground service is running.

Enums

NotificationPermission
ResourcePrefix
The resource prefix of the notification icon.
ResourceType
The resource type of the notification icon.

Exceptions / Errors

ForegroundTaskException
ForegroundTaskException