Compartir a través de


ContentProvider.CallingPackageUnchecked Property

Definition

Return the package name of the caller that initiated the request being processed on the current thread.

public string? CallingPackageUnchecked { [Android.Runtime.Register("getCallingPackageUnchecked", "()Ljava/lang/String;", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getCallingPackageUnchecked", "()Ljava/lang/String;", "", ApiSince=30)>]
member this.CallingPackageUnchecked : string

Property Value

Attributes

Remarks

Return the package name of the caller that initiated the request being processed on the current thread. The returned package will have <em>not</em> been verified to belong to the calling UID. Returns null if not currently processing a request.

This will always return null when processing #getTypeAnonymous(Uri) requests

For #getType(Uri) requests, this will be only available for cases, where the caller can be identified. See #getTypeAnonymous(Uri)

Java documentation for android.content.ContentProvider.getCallingPackageUnchecked().

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