We could not capture the screenshot of HomePage in code manually because of apple policy . But we could get the image when user click the lock button and volume + button .
in AppDelegate
Firstly, you need to add the permission string in the info.plist:
Answers
We could not capture the screenshot of HomePage in code manually because of apple policy . But we could get the image when user click the lock button and volume + button .
in AppDelegate
Firstly, you need to add the permission string in the info.plist:
Then request the dynamic authorization in the method FinishedLaunching like:
Add the notification in the method FinishedLaunching so that the app will get the notification when user capture the screen shot .