SearchManager

class SearchManager : SygicContext.OnContextDestroyListener

Types

Link copied to clipboard
enum CompositeSearchType : Enum<SearchManager.CompositeSearchType>

Functions

Link copied to clipboard
fun addContactData(data: FlatData): Long

Adds Contacts flat data

fun addContactData(data: List<FlatData>): List<Long>

Adds list of Contacts flat data

Link copied to clipboard
fun addCustomPlaceData(data: FlatData): Long

Adds Custom Places flat data

fun addCustomPlaceData(data: List<FlatData>): List<Long>

Adds list of Custom Places flat data

Link copied to clipboard
fun addFavoriteData(data: FlatData): Long

Adds Favorites flat data

fun addFavoriteData(data: List<FlatData>): List<Long>

Adds list of Favorites flat data

Link copied to clipboard
fun addHistoryData(data: FlatData): Long

Adds History flat data

fun addHistoryData(data: List<FlatData>): List<Long>

Adds list of History flat data

Link copied to clipboard
fun closeSession(session: Session)

Frees session resources after it's no longer usable

Link copied to clipboard
fun createCompositeSearch(    type: SearchManager.CompositeSearchType,     searches: List<Search>,     callback: CreateSearchCallback<CompositeSearch>,     executor: Executor? = null)

Create composite search - combination of search engines to fulfil more complex search scenarios

Link copied to clipboard
fun createCoordinateSearch(callback: CreateSearchCallback<CoordinateSearch>, executor: Executor? = null)

Create coordinate search engine

Link copied to clipboard
fun createCustomPlacesSearch(callback: CreateSearchCallback<CustomPlacesSearch>, executor: Executor? = null)

Create custom places search engine

Link copied to clipboard
fun createFlatSearch(    priority: Float,     callback: CreateSearchCallback<FlatSearch>,     executor: Executor? = null)

Create flat search engine

Link copied to clipboard
fun createOfflineMapSearch(callback: CreateSearchCallback<OfflineMapSearch>, executor: Executor? = null)

Create offline maps search engine Note: OfflineMapSearch consumes a lot of resources, it is recommended to share one OfflineMapSearch instance

Link copied to clipboard
fun createOnlineMapSearch(callback: CreateSearchCallback<OnlineMapSearch>, executor: Executor? = null)

Create online search engine

Link copied to clipboard
fun newHybridSession(): Session

Creates new online/offline session based on current connectivity

Link copied to clipboard
fun newOfflineSession(): Session

Creates new offline session

Link copied to clipboard
fun newOnlineSession(): Session

Creates new online session

Link copied to clipboard
open override fun onContextDestroy()
Link copied to clipboard
fun removeData(id: Long)
fun removeData(ids: List<Long>)

Removes data by unique ID