Share via


PackageInstaller.SessionParams.SetOriginatingUri(Uri) Method

Definition

Optionally set the URI where this package was downloaded from.

[Android.Runtime.Register("setOriginatingUri", "(Landroid/net/Uri;)V", "GetSetOriginatingUri_Landroid_net_Uri_Handler")]
public virtual void SetOriginatingUri (Android.Net.Uri? originatingUri);
[<Android.Runtime.Register("setOriginatingUri", "(Landroid/net/Uri;)V", "GetSetOriginatingUri_Landroid_net_Uri_Handler")>]
abstract member SetOriginatingUri : Android.Net.Uri -> unit
override this.SetOriginatingUri : Android.Net.Uri -> unit

Parameters

originatingUri
Uri
Attributes

Remarks

Optionally set the URI where this package was downloaded from. This is informational and may be used as a signal for anti-malware purposes.

Java documentation for android.content.pm.PackageInstaller.SessionParams.setOriginatingUri(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