DevicePolicyManager.GetManagedProfileMaximumTimeOff(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.
Called by a profile owner of an organization-owned managed profile to get maximum time the profile is allowed to be turned off.
[Android.Runtime.Register("getManagedProfileMaximumTimeOff", "(Landroid/content/ComponentName;)J", "GetGetManagedProfileMaximumTimeOff_Landroid_content_ComponentName_Handler", ApiSince=30)]
public virtual long GetManagedProfileMaximumTimeOff (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getManagedProfileMaximumTimeOff", "(Landroid/content/ComponentName;)J", "GetGetManagedProfileMaximumTimeOff_Landroid_content_ComponentName_Handler", ApiSince=30)>]
abstract member GetManagedProfileMaximumTimeOff : Android.Content.ComponentName -> int64
override this.GetManagedProfileMaximumTimeOff : Android.Content.ComponentName -> int64
Parameters
- admin
- ComponentName
Which DeviceAdminReceiver
this request is associated with
Returns
Maximum time the profile is allowed to be off in milliseconds or 0 if not limited.
- Attributes
Remarks
Called by a profile owner of an organization-owned managed profile to get maximum time the profile is allowed to be turned off.
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.