screenshotOn method

  1. @override
Future<bool> screenshotOn()
override

Return true if screenshot capabilities has been successfully enabled or is currently enabled and false otherwise. throw UnmimplementedError if not implement

Always returns true when an iOS build runs on a Mac — screenshots are permitted there by default.

Implementation

@override
Future<bool> screenshotOn() async {
  _disableProtection();
  return true;
}