SelectionInfo.Builder


class SelectionInfo.Builder


Builder for SelectionInfo.

Summary

Public constructors

Creates an empty builder.

Public functions

SelectionInfo

Builds the SelectionInfo instance.

SelectionInfo.Builder
setSelectionSource(selectionSource: Int)

Sets the source of the route selection.

SelectionInfo.Builder
setUnselectReason(unselectReason: Int)

Sets the unselect reason of the previously selected route.

Public constructors

Builder

Added in 1.9.0-alpha02
Builder()

Creates an empty builder.

Public functions

build

Added in 1.9.0-alpha02
fun build(): SelectionInfo

Builds the SelectionInfo instance.

Returns
SelectionInfo

The built SelectionInfo instance.

setSelectionSource

Added in 1.9.0-alpha02
fun setSelectionSource(selectionSource: Int): SelectionInfo.Builder

Sets the source of the route selection.

The default value is SELECTION_SOURCE_UNKNOWN.

Parameters
selectionSource: Int

The selection source.

Returns
SelectionInfo.Builder

The builder instance.

setUnselectReason

Added in 1.9.0-alpha02
fun setUnselectReason(unselectReason: Int): SelectionInfo.Builder

Sets the unselect reason of the previously selected route.

The default value is UNSELECT_REASON_UNKNOWN.

Parameters
unselectReason: Int

The unselect reason.

Returns
SelectionInfo.Builder

The builder instance.