flutter_foreground_task library
Classes
- AndroidNotificationOptions
- Notification options for Android platform.
- FlutterForegroundTask
- A class that implements foreground task and provides useful utilities.
- ForegroundServiceTypes
- https://developer.android.com/about/versions/14/changes/fgs-types-required#system-exempted
- ForegroundTaskEventAction
- A class that defines the action of onRepeatEvent in TaskHandler.
- 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
- NotificationIcon
- A data class for dynamically changing 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.
- ServiceRequestFailure
- The service request failed.
- ServiceRequestResult
- Represents the result of a service request.
- ServiceRequestSuccess
- The service request was successful.
- TaskHandler
- A class that implements a task handler.
- WithForegroundTask
- A widget that minimize the app without closing it when the user presses the soft back button. It only works when the service is running.
Enums
- ForegroundTaskEventType
- The type for ForegroundTaskEventAction.
- NotificationPermission
- Represents the result of a notification permission request.
- TaskStarter
- The starter that started the task.
Typedefs
- DataCallback = void Function(Object data)