語言

SearchManager.ActionKey 欄位

定義

意圖額外資料鍵:使用此鍵與意圖相符。

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

欄位值

屬性

備註

意圖額外資料鍵:使用此鍵來Intent.ACTION_SEARCH與內容。Intent.getIntExtra() 用來取得使用者用來觸發此查詢的鍵碼。 如果使用者只是按下搜尋介面上的「GO」按鈕,這個數字會是零。 這主要與 searchable.xml 設定檔 actionkey 元素中的 keycode 屬性一起使用。

Android 參考資料。android.app.SearchManager.ACTION_KEY

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於