Result

fun Result(title: CharSequence, subtitle: CharSequence?, distanceMeters: Double?, @DrawableRes() drawable: Int, @ColorInt() drawableColor: Int? = null, isPopulateQueryVisible: Boolean = false, payload: Any? = null)

Parameters

title

The title view text. Usually, this is a name of the search result.

subtitle

The subtitle view text. Usually, this is an address of the search result, or POI category.

distanceMeters

The distance in meters from user's location to the search result.

drawable

The drawable id that represents the search result. For example, this can be address icon, or category. See Maki icons.

drawableColor

The color that can be used for drawable tint. If empty, the default color will be chosen automatically.

isPopulateQueryVisible

The flag that denotes whether the Populate view will be shown. Usually, when a user clicks on that view, search result's name should be used to populate search query and initiate a search request with query's text. False by default.

payload

Anything that can be used to associate this item with the search result.