Android.Content.Intent.SetType Method
Set an explicit MIME data type.

Syntax

[Android.Runtime.Register("setType", "(Ljava/lang/String;)Landroid/content/Intent;", "GetSetType_Ljava_lang_String_Handler")]
public virtual Intent SetType (string type)

See Also

Intent.Type
Intent.SetTypeAndNormalize(string)
Intent.SetDataAndType(Android.Net.Uri, System.String)
Intent.NormalizeMimeType(string)

Parameters

type
The MIME type of the data being handled by this intent.

Returns

Documentation for this section has not yet been entered.

Remarks

Set an explicit MIME data type.

This is used to create intents that only specify a type and not data, for example to indicate the type of data to return.

This method automatically clears any data that was previously set (for example by Intent.SetData(Android.Net.Uri)).

Note: MIME type matching in the Android framework is case-sensitive, unlike formal RFC MIME types. As a result, you should always write your MIME types with lower case letters, or use Intent.NormalizeMimeType(string) or Intent.SetTypeAndNormalize(string) to ensure that it 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