Partager via


CrossProfileApps.IsManagedProfile(UserHandle) Method

Definition

Checks if the specified user is a managed profile.

[Android.Runtime.Register("isManagedProfile", "(Landroid/os/UserHandle;)Z", "GetIsManagedProfile_Landroid_os_UserHandle_Handler", ApiSince=35)]
public virtual bool IsManagedProfile (Android.OS.UserHandle userHandle);
[<Android.Runtime.Register("isManagedProfile", "(Landroid/os/UserHandle;)Z", "GetIsManagedProfile_Landroid_os_UserHandle_Handler", ApiSince=35)>]
abstract member IsManagedProfile : Android.OS.UserHandle -> bool
override this.IsManagedProfile : Android.OS.UserHandle -> bool

Parameters

userHandle
UserHandle

The UserHandle of the target profile, must be one of the users returned by #getTargetUserProfiles(), otherwise a SecurityException will be thrown.

Returns

whether the specified user is a managed profile.

Attributes

Remarks

Checks if the specified user is a managed profile.

Java documentation for android.content.pm.CrossProfileApps.isManagedProfile(android.os.UserHandle).

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