startService static method

Future<bool> startService(
  1. NotificationPayload options,
  2. ServiceType type
)

Implementation

static Future<bool> startService(
  NotificationPayload options,
  ServiceType type,
) async {
  if (!isAndroid) {
    return false;
  }
  return StreamVideoFlutterPlatform.instance.startBackgroundService(
    payload: options,
    type: type,
  );
}