Sdílet prostřednictvím


IntentFilter.HasDataPath(String) Method

Definition

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

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

Parameters

data
String

The data path to look for. This is without the scheme prefix.

Returns

True if the data string matches a path listed in the filter.

Attributes

Remarks

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

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