startForeground static method

  1. @Deprecated("This method is deprecated. You should use startAndroidForegroundService instead.")
Future<void> startForeground({
  1. required NotificationContent content,
  2. List<NotificationActionButton>? actionButtons,
  3. int startType = AndroidForegroundServiceConstants.startSticky,
  4. int? foregroundServiceType,
})

Implementation

@Deprecated(
    "This method is deprecated. You should use startAndroidForegroundService instead.")
static Future<void> startForeground(
    {required NotificationContent content,
    List<NotificationActionButton>? actionButtons,
    int startType = AndroidForegroundServiceConstants.startSticky,
    int? foregroundServiceType}) async {
  //no-op on web
}