screenshotsBlocked static method
Returns a bool
that specifies whether screenshot capturing is blocked.
Method might throw Exception.
Implementation
static Future<bool> screenshotsBlocked() async {
try {
final result = await channel.invokeMethod<bool>('screenshotsBlocked');
return result!;
} on PlatformException catch (e) {
throw Exception(e.details);
}
}