Builder

class Builder

Builder for CopilotOptions.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun build(): CopilotOptions

Build the CopilotOptions

Link copied to clipboard
fun maxHistoryFileLengthMillis(millis: Long): CopilotOptions.Builder

Limits duration of a history recording. If a trip takes longer than this value, the history file will be split into several parts. Default is Long.MAX_VALUE

Link copied to clipboard
fun maxHistoryFilesPerSession(count: Int): CopilotOptions.Builder

Limits number of history files per session. If there are more history files for a session than this value, only the last maxHistoryFilesPerSession files will be uploaded. Default is Int.MAX_VALUE

Link copied to clipboard
fun maxTotalHistoryFilesSizePerSession(bytes: Long): CopilotOptions.Builder

Limits total size of history files per session. If the total size of history files exceeds this value, some of the first files will not be uploaded. Default is Long.MAX_VALUE

Link copied to clipboard
fun shouldRecordFreeDriveHistories(flag: Boolean): CopilotOptions.Builder

Defines if Copilot should record history files in Free Drive state. Default is true

Link copied to clipboard

Defines if Copilot History files should be sent only when they include Feedback events. Default is false