次の方法で共有


Process.MyUserHandle Method

Definition

Returns this process's user handle.

[Android.Runtime.Register("myUserHandle", "()Landroid/os/UserHandle;", "")]
public static Android.OS.UserHandle? MyUserHandle ();
[<Android.Runtime.Register("myUserHandle", "()Landroid/os/UserHandle;", "")>]
static member MyUserHandle : unit -> Android.OS.UserHandle

Returns

Attributes

Remarks

Returns this process's user handle. This is the user the process is running under. It is distinct from #myUid() in that a particular user will have multiple distinct apps running under it each with their own uid.

Java documentation for android.os.Process.myUserHandle().

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