Share via


CrossProfileApps.TargetUserProfiles Property

Definition

Return a list of user profiles that that the caller can use when calling other APIs in this class.

public virtual System.Collections.Generic.IList<Android.OS.UserHandle> TargetUserProfiles { [Android.Runtime.Register("getTargetUserProfiles", "()Ljava/util/List;", "GetGetTargetUserProfilesHandler", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getTargetUserProfiles", "()Ljava/util/List;", "GetGetTargetUserProfilesHandler", ApiSince=28)>]
member this.TargetUserProfiles : System.Collections.Generic.IList<Android.OS.UserHandle>

Property Value

Attributes

Remarks

Return a list of user profiles that that the caller can use when calling other APIs in this class.

A user profile would be considered as a valid target user profile, provided that: <ul> <li>It gets caller app installed</li> <li>It is not equal to the calling user</li> <li>It is in the same profile group of calling user profile</li> <li>It is enabled</li> </ul>

Java documentation for android.content.pm.CrossProfileApps.getTargetUserProfiles().

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