Lingua

AppInteractionAttribution.Builder.SetInteractionUri(Uri) Method

Definition

Sets a deeplink Uri to the user request that initiated the interaction.

[Android.Runtime.Register("setInteractionUri", "(Landroid/net/Uri;)Landroid/app/AppInteractionAttribution$Builder;", "", ApiSince=37)]
public Android.App.AppInteractionAttribution.Builder SetInteractionUri(Android.Net.Uri? interactionUri);
[<Android.Runtime.Register("setInteractionUri", "(Landroid/net/Uri;)Landroid/app/AppInteractionAttribution$Builder;", "", ApiSince=37)>]
member this.SetInteractionUri : Android.Net.Uri -> Android.App.AppInteractionAttribution.Builder

Parameters

interactionUri
Uri

Returns

Attributes

Remarks

Sets a deeplink Uri to the user request that initiated the interaction.

When set, this URI can be used by privacy settings to display a link in the audit history, allowing users to navigate to the context of the original interaction.

For the link to be functional, the provided Uri must be resolvable by an Intent with the action Intent.ACTION_VIEW. To allow privacy settings to launch your activity, the target Activity must declare a corresponding <intent-filter> in your manifest.

Android reference for android.app.AppInteractionAttribution.Builder.setInteractionUri.

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