Binder.CallingUserHandle Property

Definition

Return the UserHandle assigned to the process that sent you the current transaction that is being processed.

public static Android.OS.UserHandle CallingUserHandle { [Android.Runtime.Register("getCallingUserHandle", "()Landroid/os/UserHandle;", "")] get; }
[<get: Android.Runtime.Register("getCallingUserHandle", "()Landroid/os/UserHandle;", "")>]
static member CallingUserHandle : Android.OS.UserHandle

Property Value

Attributes

Remarks

Return the UserHandle assigned to the process that sent you the current transaction that is being processed. This is the user of the caller. It is distinct from #getCallingUid() in that a particular user will have multiple distinct apps running under it each with their own UID. If the current thread is not currently executing an incoming transaction, then its own UserHandle is returned.

Java documentation for android.os.Binder.getCallingUserHandle().

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