setAmbientOffloadEnabled method
Sets whether this activity is currently in a state that supports ambient offload mode.
Implementation
Future<void> setAmbientOffloadEnabled(bool enabled) async {
try {
await _channel.invokeMethod<String>(
'setAmbientOffloadEnabled',
{'enabled': enabled},
);
} on PlatformException catch (e, st) {
debugPrint('Error calling setAmbientOffloadEnabled: $e\n$st');
rethrow;
}
}