Freigeben über


Intent.ResolveTypeIfNeeded(ContentResolver) Method

Definition

Return the MIME data type of this intent, only if it will be needed for intent resolution.

[Android.Runtime.Register("resolveTypeIfNeeded", "(Landroid/content/ContentResolver;)Ljava/lang/String;", "GetResolveTypeIfNeeded_Landroid_content_ContentResolver_Handler")]
public virtual string? ResolveTypeIfNeeded (Android.Content.ContentResolver resolver);
[<Android.Runtime.Register("resolveTypeIfNeeded", "(Landroid/content/ContentResolver;)Ljava/lang/String;", "GetResolveTypeIfNeeded_Landroid_content_ContentResolver_Handler")>]
abstract member ResolveTypeIfNeeded : Android.Content.ContentResolver -> string
override this.ResolveTypeIfNeeded : 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, or null if it is unknown or not needed.

Attributes

Remarks

Return the MIME data type of this intent, only if it will be needed for intent resolution. This is not generally useful for application code; it is used by the frameworks for communicating with back-end system services.

Java documentation for android.content.Intent.resolveTypeIfNeeded(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.

Applies to