SearchInAppsService

class SearchInAppsService


Interface for accessing SearchInApps features. To use this class, apps need to set the meta-data values for com.google.searchinapps.API_KEY and com.google.searchinapps.CLIENT_ID in their AndroidManifest.xml.

Summary

Public functions

java-static SearchInAppsService!
create(context: Context!)

Creates a SearchInAppsService.

Unit
getSearchSuggestionsView(
    getSearchSuggestionsViewOptions: GetSearchSuggestionsViewOptions!,
    callback: GetSearchSuggestionsViewGeneratorCallback!
)

Called to get search suggestions UI view.

Unit
getTrendingSearchesView(
    getTrendingSearchesViewOptions: GetTrendingSearchesViewOptions!,
    callback: GetSearchSuggestionsViewGeneratorCallback!
)

Called to get trending searches UI view.

Public functions

create

java-static fun create(context: Context!): SearchInAppsService!

Creates a SearchInAppsService.

Parameters
context: Context!

Activity context.

getSearchSuggestionsView

fun getSearchSuggestionsView(
    getSearchSuggestionsViewOptions: GetSearchSuggestionsViewOptions!,
    callback: GetSearchSuggestionsViewGeneratorCallback!
): Unit

Called to get search suggestions UI view. Callback will happen on the same calling thread.

Parameters
getSearchSuggestionsViewOptions: GetSearchSuggestionsViewOptions!

options needed for retrieving search suggestions UI view.

callback: GetSearchSuggestionsViewGeneratorCallback!

callback to be invoked when search suggestions UI view are retrieved.

getTrendingSearchesView

fun getTrendingSearchesView(
    getTrendingSearchesViewOptions: GetTrendingSearchesViewOptions!,
    callback: GetSearchSuggestionsViewGeneratorCallback!
): Unit

Called to get trending searches UI view. Callback will happen on the same calling thread.

Parameters
getTrendingSearchesViewOptions: GetTrendingSearchesViewOptions!

options needed for retrieving trending searches UI view.

callback: GetSearchSuggestionsViewGeneratorCallback!

callback to be invoked when trending searches UI view are retrieved.