Intent.ResolveType Method

Definition

Overloads

ResolveType(ContentResolver)

Return the MIME data type of this intent.

ResolveType(Context)

Return the MIME data type of this intent.

ResolveType(ContentResolver)

Return the MIME data type of this intent.

[Android.Runtime.Register("resolveType", "(Landroid/content/ContentResolver;)Ljava/lang/String;", "GetResolveType_Landroid_content_ContentResolver_Handler")]
public virtual string? ResolveType (Android.Content.ContentResolver resolver);
[<Android.Runtime.Register("resolveType", "(Landroid/content/ContentResolver;)Ljava/lang/String;", "GetResolveType_Landroid_content_ContentResolver_Handler")>]
abstract member ResolveType : Android.Content.ContentResolver -> string
override this.ResolveType : Android.Content.ContentResolver -> string

Parameters

resolver
ContentResolver

A ContentResolver that can be used to determine the MIME type of the intent's data.

Returns

The MIME type of this intent.

Attributes

Remarks

Return the MIME data type of this intent. If the type field is explicitly set, that is simply returned. Otherwise, if the data is set, the type of that data is returned. If neither fields are set, a null is returned.

Java documentation for android.content.Intent.resolveType(android.content.ContentResolver).

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.

See also

Applies to

ResolveType(Context)

Return the MIME data type of this intent.

[Android.Runtime.Register("resolveType", "(Landroid/content/Context;)Ljava/lang/String;", "GetResolveType_Landroid_content_Context_Handler")]
public virtual string? ResolveType (Android.Content.Context context);
[<Android.Runtime.Register("resolveType", "(Landroid/content/Context;)Ljava/lang/String;", "GetResolveType_Landroid_content_Context_Handler")>]
abstract member ResolveType : Android.Content.Context -> string
override this.ResolveType : Android.Content.Context -> string

Parameters

context
Context

Returns

The MIME type of this intent.

Attributes

Remarks

Return the MIME data type of this intent. If the type field is explicitly set, that is simply returned. Otherwise, if the data is set, the type of that data is returned. If neither fields are set, a null is returned.

Java documentation for android.content.Intent.resolveType(android.content.Context).

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.

See also

Applies to