Udostępnij za pośrednictwem


LauncherApps.Profiles Property

Definition

Return a list of profiles that the caller can access via the LauncherApps APIs.

public virtual System.Collections.Generic.IList<Android.OS.UserHandle>? Profiles { [Android.Runtime.Register("getProfiles", "()Ljava/util/List;", "GetGetProfilesHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getProfiles", "()Ljava/util/List;", "GetGetProfilesHandler", ApiSince=26)>]
member this.Profiles : System.Collections.Generic.IList<Android.OS.UserHandle>

Property Value

Attributes

Remarks

Return a list of profiles that the caller can access via the LauncherApps APIs.

If the caller is running on a managed profile, it'll return only the current profile. Otherwise it'll return the same list as UserManager#getUserProfiles() would.

Java documentation for android.content.pm.LauncherApps.getProfiles().

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