{% setvar book_path %}/android/reference/kotlin/_book.yaml{% endsetvar %} {% include "/android/_dackka-meta-tags.html" %}

SearchIntents

{% setvar page_path %}com/google/android/gms/actions/SearchIntents.html{% endsetvar %} {% setvar doc_root_path %}/android/reference{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "android/_kotlin_switcher2.md" %}

class SearchIntents


Constants for intents to perform in-app search from a Search Action.

Summary

Constants

const String!
ACTION_SEARCH = "com.google.android.gms.actions.SEARCH_ACTION"

Intent action for performing an in-app search.

const String!
EXTRA_QUERY = "query"

Intent extra specifying the text query to use as a string for ACTION_SEARCH.

Constants

ACTION_SEARCH

const val ACTION_SEARCH = "com.google.android.gms.actions.SEARCH_ACTION": String!

Intent action for performing an in-app search. The intent should include an optional extra to specify the text to search for EXTRA_QUERY. If no extras are provided, the application should just show an Activity with the search UI activated.

EXTRA_QUERY

const val EXTRA_QUERY = "query": String!

Intent extra specifying the text query to use as a string for ACTION_SEARCH.