onScreenShots property

Stream<void> onScreenShots

获取监听截屏动作的Stream。用法:

DisableScreenshots().onScreenShots.listen((event) {
  print("监听到了截屏动作");
});

Implementation

Stream<void> get onScreenShots {
  if (_onScreenShots == null) {
    _onScreenShots = _eventChannel.receiveBroadcastStream();
  }
  return _onScreenShots!;
}