共用方式為


IntentFilter.MatchAction(String) Method

Definition

Match this filter against an Intent's action.

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

Parameters

action
String

The desired action to look for.

Returns

True if the action is listed in the filter.

Attributes

Remarks

Match this filter against an Intent's action. If the filter does not specify any actions, the match will always fail.

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