create

fun create(context: Context, apiKey: String, customApiUrl: URL? = null, geopoliticalView: String? = null): Search

Creates an instance of the OnlineSearch.

Parameters

context

Information about an application environment.

apiKey

API key for online search.

customApiUrl

Custom base URL to execute Search API calls.

geopoliticalView

The country code in the ISO 3166-1 alpha-3 format; returned results express the view of the given country on one or more disputed territories. If not provided, the international geopolitical view is used.

Throws