Share via


ClipDescription.HasMimeType(String) Method

Definition

Check whether the clip description contains the given MIME type.

[Android.Runtime.Register("hasMimeType", "(Ljava/lang/String;)Z", "GetHasMimeType_Ljava_lang_String_Handler")]
public virtual bool HasMimeType (string? mimeType);
[<Android.Runtime.Register("hasMimeType", "(Ljava/lang/String;)Z", "GetHasMimeType_Ljava_lang_String_Handler")>]
abstract member HasMimeType : string -> bool
override this.HasMimeType : string -> bool

Parameters

mimeType
String

The desired MIME type. May be a pattern.

Returns

Returns true if one of the MIME types in the clip description matches the desired MIME type, else false.

Attributes

Remarks

Check whether the clip description contains the given MIME type.

Java documentation for android.content.ClipDescription.hasMimeType(java.lang.String).

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