IntentFilter.HasDataType(String) Method

Definition

Is the given data type included in the filter? Note that if the filter does not include any type, false will <em>always</em> be returned.

[Android.Runtime.Register("hasDataType", "(Ljava/lang/String;)Z", "")]
public bool HasDataType (string? type);
[<Android.Runtime.Register("hasDataType", "(Ljava/lang/String;)Z", "")>]
member this.HasDataType : string -> bool

Parameters

type
String

The data type to look for.

Returns

True if the type is explicitly mentioned in the filter.

Attributes

Remarks

Is the given data type included in the filter? Note that if the filter does not include any type, false will <em>always</em> be returned.

Java documentation for android.content.IntentFilter.hasDataType(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