SearchManager

class SearchManager : SygicContext.OnContextDestroyListener

Types

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

Functions

addContactData
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

addCustomPlaceData
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

addFavoriteData
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

addHistoryData
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

closeSession
Link copied to clipboard
fun closeSession(session: Session)

Frees session resources after it's no longer usable

createCompositeSearch
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

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

Create coordinate search engine

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

Create custom places search engine

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

Create flat search engine

createOfflineMapSearch
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

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

Create online search engine

newHybridSession
Link copied to clipboard
fun newHybridSession(): Session

Creates new online/offline session based on current connectivity

newOfflineSession
Link copied to clipboard
fun newOfflineSession(): Session

Creates new offline session

newOnlineSession
Link copied to clipboard
fun newOnlineSession(): Session

Creates new online session

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

Removes data by unique ID