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
getSearchContentView(
    getSearchContentViewOptions: GetSearchContentViewOptions!,
    callback: GetSearchContentViewGeneratorCallback!
)

Called to get search content UI view.

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.

Unit

Shut down the service and release its resources.

Public functions

create

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

Creates a SearchInAppsService.

Parameters
context: Context!

Activity context.

getSearchContentView

fun getSearchContentView(
    getSearchContentViewOptions: GetSearchContentViewOptions!,
    callback: GetSearchContentViewGeneratorCallback!
): Unit

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

Parameters
getSearchContentViewOptions: GetSearchContentViewOptions!

options needed for retrieving search content UI view.

callback: GetSearchContentViewGeneratorCallback!

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

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.

shutDown

fun shutDown(): Unit

Shut down the service and release its resources.