isOnscreen property

Future<bool> isOnscreen

Determines whether SDK is currently in UI hierarchy.

Implementation

Future<bool> get isOnscreen async {
  final result = await _channel.invokeMethod<bool>('display:isOnscreen').then<bool>((bool? value) => value ?? false);
  return result;
}