Megosztás a következőn keresztül:


ContentProvider.CallingAttributionTag Property

Definition

Return the attribution tag of the caller that initiated the request being processed on the current thread.

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

Property Value

Attributes

Remarks

Return the attribution tag of the caller that initiated the request being processed on the current thread. Returns null if not currently processing a request of the request is for the default attribution.

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.getCallingAttributionTag().

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