startAndroidForegroundService static method

Future<void> startAndroidForegroundService({
  1. required NotificationContent content,
  2. List<NotificationActionButton>? actionButtons,
  3. ForegroundStartMode foregroundStartMode = ForegroundStartMode.stick,
  4. ForegroundServiceType foregroundServiceType = ForegroundServiceType.none,
})

Implementation

static Future<void> startAndroidForegroundService(
    {required NotificationContent content,
    List<NotificationActionButton>? actionButtons,
    ForegroundStartMode foregroundStartMode = ForegroundStartMode.stick,
    ForegroundServiceType foregroundServiceType =
        ForegroundServiceType.none}) async {}