ContentProvider.CallingAttributionSource Property

Definition

Gets the attribution source of the calling app.

public Android.Content.AttributionSource? CallingAttributionSource { [Android.Runtime.Register("getCallingAttributionSource", "()Landroid/content/AttributionSource;", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getCallingAttributionSource", "()Landroid/content/AttributionSource;", "", ApiSince=31)>]
member this.CallingAttributionSource : Android.Content.AttributionSource

Property Value

The identity of the caller for permission purposes.

Attributes

Remarks

Gets the attribution source of the calling app. If you want to attribute the data access to the calling app you can create an attribution context via android.content.Context#createContext(ContextParams) and passing this identity to ContextParams.Builder#setNextAttributionSource( AttributionSource).

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

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