Partager via


EventUrlProvider.CreateEventTrackingUrlWithRedirect Method

Definition

Creates an event tracking URL that redirects to the provided destination URL when it is clicked in an ODP webview.

[Android.Runtime.Register("createEventTrackingUrlWithRedirect", "(Landroid/os/PersistableBundle;Landroid/net/Uri;)Landroid/net/Uri;", "GetCreateEventTrackingUrlWithRedirect_Landroid_os_PersistableBundle_Landroid_net_Uri_Handler", ApiSince=35)]
public virtual Android.Net.Uri CreateEventTrackingUrlWithRedirect (Android.OS.PersistableBundle eventParams, Android.Net.Uri? destinationUrl);
[<Android.Runtime.Register("createEventTrackingUrlWithRedirect", "(Landroid/os/PersistableBundle;Landroid/net/Uri;)Landroid/net/Uri;", "GetCreateEventTrackingUrlWithRedirect_Landroid_os_PersistableBundle_Landroid_net_Uri_Handler", ApiSince=35)>]
abstract member CreateEventTrackingUrlWithRedirect : Android.OS.PersistableBundle * Android.Net.Uri -> Android.Net.Uri
override this.CreateEventTrackingUrlWithRedirect : Android.OS.PersistableBundle * Android.Net.Uri -> Android.Net.Uri

Parameters

eventParams
PersistableBundle

The data to be passed to IsolatedWorker#onEvent(EventInput, android.os.OutcomeReceiver) when the event occurs

destinationUrl
Uri

The URL to redirect to.

Returns

Uri

An ODP event URL that can be inserted into a WebView.

Attributes

Remarks

Creates an event tracking URL that redirects to the provided destination URL when it is clicked in an ODP webview.

Java documentation for android.adservices.ondevicepersonalization.EventUrlProvider.createEventTrackingUrlWithRedirect(android.os.PersistableBundle, android.net.Uri).

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