How to disable screen Recording in iOS app

前端 未结 3 2060
抹茶落季
抹茶落季 2021-01-03 03:17

Is there any way to disable the screen recording? or is is possible through a configuration profile? or any third party library is available?

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-03 03:39

    When your app is started you can test UIScreen.isCaptured property and show some splash screen if it's set to true.

    You should also observe (subscribe in some place for) capturedDidChangeNotification notification, and do same thing (show splash screen) if UIScreen.isCaptured is set to true.

提交回复
热议问题