onScreenShots property
Stream?
onScreenShots
获取监听截屏动作的Stream。用法:
FlutterSecureScreen.singleton.onScreenShots.listen((event) {
print("监听到了截屏动作");
});
Implementation
Stream<dynamic>? get onScreenShots {
if (_onScreenShots == null) {
_onScreenShots = _screenShotsEventChannel?.receiveBroadcastStream();
}
return _onScreenShots;
}