keepInForeground method

  1. @override
Future<void> keepInForeground(
  1. bool enabled
)
override

Android only

Implementation

@override
Future<void> keepInForeground(bool enabled) async {
  await methodChannel.invokeMethod(
    'keepInForeground',
    <String, dynamic>{
      'enabled': enabled,
    },
  );
}