共用方式為


UserManager.IsSystemUser Property

Definition

Used to check if the context user is the system user.

public virtual bool IsSystemUser { [Android.Runtime.Register("isSystemUser", "()Z", "GetIsSystemUserHandler", ApiSince=23)] get; }
[<get: Android.Runtime.Register("isSystemUser", "()Z", "GetIsSystemUserHandler", ApiSince=23)>]
member this.IsSystemUser : bool

Property Value

whether the context user is the system user.

Attributes

Remarks

Used to check if the context user is the system user. The system user is the initial user that is implicitly created on first boot and hosts most of the system services.

Java documentation for android.os.UserManager.isSystemUser().

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