init static method
void
init({
- required AndroidNotificationOptions androidNotificationOptions,
- required IOSNotificationOptions iosNotificationOptions,
- required ForegroundTaskOptions foregroundTaskOptions,
Initialize the FlutterForegroundTask.
Implementation
static void init({
required AndroidNotificationOptions androidNotificationOptions,
required IOSNotificationOptions iosNotificationOptions,
required ForegroundTaskOptions foregroundTaskOptions,
}) {
_androidNotificationOptions = androidNotificationOptions;
_iosNotificationOptions = iosNotificationOptions;
_foregroundTaskOptions = foregroundTaskOptions;
_initialized = true;
}