SearchIntents

Kotlin|Java

public classSearchIntents


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

Summary

Constants

static finalString
ACTION_SEARCH = "com.google.android.gms.actions.SEARCH_ACTION"

Intent action for performing an in-app search.

static finalString
EXTRA_QUERY = "query"

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

Constants

ACTION_SEARCH

public static final String ACTION_SEARCH = "com.google.android.gms.actions.SEARCH_ACTION"

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

EXTRA_QUERY

public static final String EXTRA_QUERY = "query"

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

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.