- admin
- Which Android.App.Admin.DeviceAdminReceiver this request is associated with.
- timeMs
- The new desired maximum time to lock in milliseconds. A value of 0 means there is no restriction.
Called by an application that is administering the device to set the maximum time for user activity until the device will lock. This limits the length that the user can set. It takes effect immediately.
The calling device admin must have requested DeviceAdminInfo.UsesPolicyForceLock to be able to call this method; if it has not, a security exception will be thrown.