DevicePolicyManager.GetSecondaryUsers(ComponentName) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called by a device owner to list all secondary users on the device.
[Android.Runtime.Register("getSecondaryUsers", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetSecondaryUsers_Landroid_content_ComponentName_Handler", ApiSince=28)]
public virtual System.Collections.Generic.IList<Android.OS.UserHandle>? GetSecondaryUsers (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getSecondaryUsers", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetSecondaryUsers_Landroid_content_ComponentName_Handler", ApiSince=28)>]
abstract member GetSecondaryUsers : Android.Content.ComponentName -> System.Collections.Generic.IList<Android.OS.UserHandle>
override this.GetSecondaryUsers : Android.Content.ComponentName -> System.Collections.Generic.IList<Android.OS.UserHandle>
Parameters
- admin
- ComponentName
Which DeviceAdminReceiver
this request is associated with.
Returns
list of other UserHandle
s on the device.
- Attributes
Remarks
Called by a device owner to list all secondary users on the device. Managed profiles are not considered as secondary users.
Used for various user management APIs, including #switchUser
, #removeUser
and #stopUser
.
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.