DevicePolicyManager.GetMaximumTimeToLock(ComponentName) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieve the current maximum time to unlock for a particular admin or all admins that set restrictions on this user and its participating profiles.
[Android.Runtime.Register("getMaximumTimeToLock", "(Landroid/content/ComponentName;)J", "GetGetMaximumTimeToLock_Landroid_content_ComponentName_Handler")]
public virtual long GetMaximumTimeToLock (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getMaximumTimeToLock", "(Landroid/content/ComponentName;)J", "GetGetMaximumTimeToLock_Landroid_content_ComponentName_Handler")>]
abstract member GetMaximumTimeToLock : Android.Content.ComponentName -> int64
override this.GetMaximumTimeToLock : Android.Content.ComponentName -> int64
Parameters
- admin
- ComponentName
The name of the admin component to check, or null
to aggregate
all admins.
Returns
time in milliseconds for the given admin or the minimum value (strictest) of all admins if admin is null. Returns 0 if there are no restrictions.
- Attributes
Remarks
Retrieve the current maximum time to unlock for a particular admin or all admins that set restrictions on this user and its participating profiles. Restrictions on profiles that have a separate challenge are not taken into account.
This method can be called on the DevicePolicyManager
instance returned by #getParentProfileInstance(ComponentName)
in order to retrieve restrictions on the parent profile.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.