Udostępnij za pośrednictwem


DevicePolicyManager.GetManagedProfileMaximumTimeOff(ComponentName) Method

Definition

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.

Java documentation for android.app.admin.DevicePolicyManager.getManagedProfileMaximumTimeOff(android.content.ComponentName).

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.

Applies to