Activity.OnProvideReferrer Method

Definition

Override to generate the desired referrer for the content currently being shown by the app.

[Android.Runtime.Register("onProvideReferrer", "()Landroid/net/Uri;", "GetOnProvideReferrerHandler", ApiSince=23)]
public virtual Android.Net.Uri? OnProvideReferrer ();
[<Android.Runtime.Register("onProvideReferrer", "()Landroid/net/Uri;", "GetOnProvideReferrerHandler", ApiSince=23)>]
abstract member OnProvideReferrer : unit -> Android.Net.Uri
override this.OnProvideReferrer : unit -> Android.Net.Uri

Returns

Uri
Attributes

Remarks

Override to generate the desired referrer for the content currently being shown by the app. The default implementation returns null, meaning the referrer will simply be the android-app: of the package name of this activity. Return a non-null Uri to have that supplied as the Intent#EXTRA_REFERRER of any activities started from it.

Java documentation for android.app.Activity.onProvideReferrer().

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