Added preventSreenLock API for iOS