setCapturedHandler method
Sets a handler for screen capture status changes.
Implementation
@override
void setCapturedHandler(Function(bool isCaptured) onCaptured) {
methodChannel.setMethodCallHandler((call) async {
if (call.method == 'onCapturedChanged') {
final bool isCaptured = call.arguments as bool;
onCaptured(isCaptured);
}
});
}