Udostępnij za pośrednictwem


DevicePolicyManager.GetBindDeviceAdminTargetUsers(ComponentName) Method

Definition

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

Returns

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.

Java documentation for android.app.admin.DevicePolicyManager.getBindDeviceAdminTargetUsers(android.content.ComponentName).

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