DevicePolicyManager.IsManagedProfile(ComponentName) Method

Definition

Return if this user is a managed profile of another user.

[Android.Runtime.Register("isManagedProfile", "(Landroid/content/ComponentName;)Z", "GetIsManagedProfile_Landroid_content_ComponentName_Handler", ApiSince=24)]
public virtual bool IsManagedProfile (Android.Content.ComponentName admin);
[<Android.Runtime.Register("isManagedProfile", "(Landroid/content/ComponentName;)Z", "GetIsManagedProfile_Landroid_content_ComponentName_Handler", ApiSince=24)>]
abstract member IsManagedProfile : Android.Content.ComponentName -> bool
override this.IsManagedProfile : Android.Content.ComponentName -> bool

Parameters

admin
ComponentName

Which profile owner this request is associated with.

Returns

if this user is a managed profile of another user.

Attributes

Remarks

Return if this user is a managed profile of another user. An admin can become the profile owner of a managed profile with #ACTION_PROVISION_MANAGED_PROFILE and of a managed user with #createAndManageUser

Java documentation for android.app.admin.DevicePolicyManager.isManagedProfile(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