Compartir a través de


IntentFilter.HasAction(String) Method

Definition

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

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

Parameters

action
String

The action to look for.

Returns

True if the action is explicitly mentioned in the filter.

Attributes

Remarks

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

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