次の方法で共有


SearchManager.UserQuery Field

Definition

Intent extra data key: Use this key with android.content.Intent#getStringExtra content.Intent.getStringExtra() to obtain the query string typed in by the user.

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

Field Value

Attributes

Remarks

Intent extra data key: Use this key with android.content.Intent#getStringExtra content.Intent.getStringExtra() to obtain the query string typed in by the user. This may be different from the value of #QUERY if the intent is the result of selecting a suggestion. In that case, #QUERY will contain the value of #SUGGEST_COLUMN_QUERY for the suggestion, and #USER_QUERY will contain the string typed by the user.

Java documentation for android.app.SearchManager.USER_QUERY.

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