setForeground static method

Future<void> setForeground(
  1. bool foreground
)

Implementation

static Future<void> setForeground(bool foreground) async {
  if (kIsWeb) return;
  if (!Platform.isAndroid) return;
  await _channel.invokeMethod('setForeground', {"foreground": foreground});
}