【发布时间】:2017-06-19 20:38:51
【问题描述】:
Apple 发布了我一直在使用的屏幕截图检测的可靠通知,但我还想检测用户是否正在使用新的 ReplayKit API 录制我的应用程序。我们可以尝试获取 UIScreenDidConnectNotification 或测试 .mirroredScreen 属性以查看是否发生了任何事情,但这些都不可靠,尽管 Apple 的旧技术说明 (https://developer.apple.com/library/content/qa/qa1738/_index.html) 另有说明。我们可以查看状态栏的高度,但这有误报。 有没有人为此工作?
【问题讨论】:
-
你试过
[[RPScreenRecorder sharedRecorder] isRecording]吗? -
是的,它不起作用
标签: ios video-recording