语言

IntentFilter.MatchAction(String) 方法

定义

将此筛选器与意向的操作匹配。

[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

参数

action
String

要查找的所需操作。

返回

如此 如果操作列在筛选器中。

特性

注解

将此筛选器与意向的操作匹配。 如果筛选器未指定任何操作,匹配将始终失败。

Java文档android.content.IntentFilter.matchAction(java.lang.String)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于