Android.Content.Intent.SetDataAndType Method
(Usually optional) Set the data for the intent along with an explicit MIME data type.

Syntax

[Android.Runtime.Register("setDataAndType", "(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;", "GetSetDataAndType_Landroid_net_Uri_Ljava_lang_String_Handler")]
public virtual Intent SetDataAndType (Android.Net.Uri data, string type)

See Also

Intent.SetType(string)
Intent.SetData(Android.Net.Uri)
Intent.NormalizeMimeType(string)
Android.Net.Uri.NormalizeScheme
Intent.SetDataAndTypeAndNormalize(Android.Net.Uri, System.String)

Parameters

data
The Uri of the data this intent is now targeting.
type
The MIME type of the data being handled by this intent.

Returns

Documentation for this section has not yet been entered.

Remarks

(Usually optional) Set the data for the intent along with an explicit MIME data type. This method should very rarely be used -- it allows you to override the MIME type that would ordinarily be inferred from the data with your own type given here.

Note: MIME type and Uri scheme matching in the Android framework is case-sensitive, unlike the formal RFC definitions. As a result, you should always write these elements with lower case letters, or use Intent.NormalizeMimeType(string) or Android.Net.Uri.NormalizeScheme or Intent.SetDataAndTypeAndNormalize(Android.Net.Uri, System.String) to ensure that they are 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