DevicePolicyManager.GetBindDeviceAdminTargetUsers(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.
Returns the list of target users that the calling device owner or owner of secondary user
can use when calling #bindDeviceAdminServiceAsUser.
[Android.Runtime.Register("getBindDeviceAdminTargetUsers", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetBindDeviceAdminTargetUsers_Landroid_content_ComponentName_Handler", ApiSince=26)]
public virtual System.Collections.Generic.IList<Android.OS.UserHandle> GetBindDeviceAdminTargetUsers(Android.Content.ComponentName admin);
[<Android.Runtime.Register("getBindDeviceAdminTargetUsers", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetBindDeviceAdminTargetUsers_Landroid_content_ComponentName_Handler", ApiSince=26)>]
abstract member GetBindDeviceAdminTargetUsers : Android.Content.ComponentName -> System.Collections.Generic.IList<Android.OS.UserHandle>
override this.GetBindDeviceAdminTargetUsers : Android.Content.ComponentName -> System.Collections.Generic.IList<Android.OS.UserHandle>
Parameters
- admin
- ComponentName
The component name of an active administrator with the same UID as the caller.
Returns
The users that the caller can bind to. The list is never null.
- Attributes
Remarks
Returns the list of target users that the calling device owner or owner of secondary user can use when calling #bindDeviceAdminServiceAsUser.
A device owner can bind to a service from a secondary managed user and vice versa, provided that both users are affiliated. See #setAffiliationIds.
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.