DevicePolicyManager.IsAffiliatedUser Property

Definition

Returns whether this user is affiliated with the device.

public virtual bool IsAffiliatedUser { [Android.Runtime.Register("isAffiliatedUser", "()Z", "GetIsAffiliatedUserHandler", ApiSince=28)] get; }
[<get: Android.Runtime.Register("isAffiliatedUser", "()Z", "GetIsAffiliatedUserHandler", ApiSince=28)>]
member this.IsAffiliatedUser : bool

Property Value

Attributes

Remarks

Returns whether this user is affiliated with the device.

By definition, the user that the device owner runs on is always affiliated with the device. Any other user is considered affiliated with the device if the set specified by its profile owner via #setAffiliationIds intersects with the device owner's.

Java documentation for android.app.admin.DevicePolicyManager.isAffiliatedUser().

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