Android.Content.Intent.SetData Method
Set the data this intent is operating on.

Syntax

[Android.Runtime.Register("setData", "(Landroid/net/Uri;)Landroid/content/Intent;", "GetSetData_Landroid_net_Uri_Handler")]
public virtual Intent SetData (Android.Net.Uri data)

See Also

Intent.Data
Intent.SetDataAndNormalize(Android.Net.Uri)
Android.Net.Uri.NormalizeScheme

Parameters

data
The Uri of the data this intent is now targeting.

Returns

Documentation for this section has not yet been entered.

Remarks

Set the data this intent is operating on. This method automatically clears any type that was previously set by Intent.SetType(string) or Intent.SetTypeAndNormalize(string).

Note: scheme matching in the Android framework is case-sensitive, unlike the formal RFC. As a result, you should always write your Uri with a lower case scheme, or use Android.Net.Uri.NormalizeScheme or Intent.SetDataAndNormalize(Android.Net.Uri) to ensure that the scheme is converted to lower case.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1