DurationConfig

data class DurationConfig(val timeFormat: DurationFormat = DurationFormat.MM_SS, @IntRange(from = 0) val currentTime: Long? = null, @IntRange(from = 0) val minTime: Long = 0, @IntRange(from = 1) val maxTime: Long = Long.MAX_VALUE, val displayClearButton: Boolean = false, val icons: LibIcons = BaseConstants.DEFAULT_ICON_STYLE, val orientation: LibOrientation? = BaseConstants.DEFAULT_LIB_LAYOUT) : BaseConfigs

The general configuration for the duration dialog.

Parameters

timeFormat

Available color selection modes. If null, both are used.

currentTime

Current time in seconds.

minTime

Minimum time.

maxTime

Maximum time.

displayClearButton

Replaces the "00" Value-Button with a button to clear all values.

icons

The style of icons that are used for dialog/ view-specific icons.

orientation

The orientation of the view or null for auto orientation.

Constructors

Link copied to clipboard
constructor(timeFormat: DurationFormat = DurationFormat.MM_SS, @IntRange(from = 0) currentTime: Long? = null, @IntRange(from = 0) minTime: Long = 0, @IntRange(from = 1) maxTime: Long = Long.MAX_VALUE, displayClearButton: Boolean = false, icons: LibIcons = BaseConstants.DEFAULT_ICON_STYLE, orientation: LibOrientation? = BaseConstants.DEFAULT_LIB_LAYOUT)

Properties

Link copied to clipboard
val currentTime: Long? = null
Link copied to clipboard
Link copied to clipboard
open override val icons: LibIcons
Link copied to clipboard
Link copied to clipboard
val minTime: Long = 0
Link copied to clipboard
open override val orientation: LibOrientation?
Link copied to clipboard