occludeSensitiveScreen static method

Future<void> occludeSensitiveScreen(
  1. bool hideScreen
)

This method is used with parameter to occlude following screen

hideScreen is boolean value.

eg: occludeSensitiveScreen(true); ---> will hide eg: occludeSensitiveScreen(false); ---> will unhide if hidden

Implementation

static Future<void> occludeSensitiveScreen(bool hideScreen) async {
  await _channel.invokeMethod('occludeSensitiveScreen', {"key": hideScreen});
}