setForegroundScanPeriodForAndroid static method

Future<void> setForegroundScanPeriodForAndroid({
  1. int foregroundScanPeriod = 1100,
  2. int foregroundBetweenScanPeriod = 0,
})

Implementation

static Future<void> setForegroundScanPeriodForAndroid(
    {int foregroundScanPeriod = 1100,
    int foregroundBetweenScanPeriod = 0}) async {
  final String? result = await channel
      .invokeMethod('setForegroundScanPeriodForAndroid', <String, dynamic>{
    'foregroundScanPeriod': foregroundScanPeriod,
    'foregroundBetweenScanPeriod': foregroundBetweenScanPeriod
  });
  printDebugMessage(result, 2);
}