startForegroundService method

  1. @override
Future<bool> startForegroundService({
  1. required String pollingUrl,
  2. int? intervalMinutes,
  3. String? channelId,
})
override

Implementation

@override
Future<bool> startForegroundService({
  required String pollingUrl,
  int? intervalMinutes,
  String? channelId,
}) async {
  final result =
      await methodChannel.invokeMethod<bool>('startForegroundService', {
    'pollingUrl': pollingUrl,
    'intervalMinutes': intervalMinutes,
    'channelId': channelId,
  });
  return result ?? false;
}