语言

SearchManager.ActionKey 字段

定义

意向额外数据密钥:将此密钥用于Intent.ACTION_SEARCH和内容。Intent.getIntExtra() 获取用于触发此查询的用户的密钥码。

[Android.Runtime.Register("ACTION_KEY")]
public const string ActionKey;
[<Android.Runtime.Register("ACTION_KEY")>]
val mutable ActionKey : string

字段值

特性

注解

意向额外数据密钥:将此密钥用于Intent.ACTION_SEARCH和内容。Intent.getIntExtra() 获取用于触发此查询的用户的密钥码。 如果用户只是在搜索 UI 上按下了“GO”按钮,则为零。 这主要与 searchable.xml 配置文件的 actionkey 元素中的 keycode 属性结合使用。

Android 参考。android.app.SearchManager.ACTION_KEY

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

适用于