How to lock & unlock the iOS device programmatically

iOSApps/ApplicationsMobile Development

Locking of iOS device cannot be done programmatically without the use of Private API’s. One such private API’s GSEventLockDevice() (private API) from GraphicsServices.framework which might help you achieve your persona but the application would result in rejection from Apple’s App Store.

More over there’s no documentation provided by apple for the same.

On a final note you cannot achieve this functionality without using the Private API’s and if you are using your application will be rejected by Apple.

raja
Published on 09-May-2019 11:31:24
Advertisements