sdk-search / com.tomtom.online.sdk.search / OnlineSearchApi / create

create

open static fun create(@NonNull context: Context): SearchApi!

Creates a new SearchAPI object which will use the provided search API Key. It uses default values for a Search service endpoint and API version.

Return
SearchApi!: Newly created SearchAPI object for further processing.

open static fun create(@NonNull context: Context, apiKey: String!): SearchApi!

Creates new SearchAPI object which will use Search API Key obtained from parameter. It uses default values for search service endpoint and api version.

Return
SearchApi!: Newly created SearchAPI object for further processing.