SelectionInfo.Builder


public final class SelectionInfo.Builder


Builder for SelectionInfo.

Summary

Public constructors

Creates an empty builder.

Public methods

@NonNull SelectionInfo

Builds the SelectionInfo instance.

@NonNull SelectionInfo.Builder
setSelectionSource(int selectionSource)

Sets the source of the route selection.

@NonNull SelectionInfo.Builder
setUnselectReason(int unselectReason)

Sets the unselect reason of the previously selected route.

Public constructors

Builder

Added in 1.9.0
public Builder()

Creates an empty builder.

Public methods

build

Added in 1.9.0
public @NonNull SelectionInfo build()

Builds the SelectionInfo instance.

Returns
@NonNull SelectionInfo

The built SelectionInfo instance.

setSelectionSource

Added in 1.9.0
public @NonNull SelectionInfo.Builder setSelectionSource(int selectionSource)

Sets the source of the route selection.

The default value is SELECTION_SOURCE_UNKNOWN.

Parameters
int selectionSource

The selection source.

Returns
@NonNull SelectionInfo.Builder

The builder instance.

setUnselectReason

Added in 1.9.0
public @NonNull SelectionInfo.Builder setUnselectReason(int unselectReason)

Sets the unselect reason of the previously selected route.

The default value is UNSELECT_REASON_UNKNOWN.

Parameters
int unselectReason

The unselect reason.

Returns
@NonNull SelectionInfo.Builder

The builder instance.