allowScreenshots method

Future<void> allowScreenshots()

Allows screenshots for the current screen only.

This method removes the security flag for the current screen, allowing screenshots and screen recording for this screen. Throws UnimplementedError if not implemented on a platform.

Implementation

Future<void> allowScreenshots() {
  throw UnimplementedError('allowScreenshots() has not been implemented.');
}