API reference
API reference
Select your platform
No SDKs available
No versions available

SwitchColors Class

Modifiers: final
Represents the colors used by a null.SpatialSwitch in different states

Constructors

SwitchColors ( checkedThumbColor , checkedTrackColor , checkedBorderColor , checkedIconColor , uncheckedThumbColor , uncheckedTrackColor , uncheckedBorderColor , uncheckedIconColor , disabledCheckedThumbColor , disabledCheckedTrackColor , disabledCheckedBorderColor , disabledCheckedIconColor , disabledUncheckedThumbColor , disabledUncheckedTrackColor , disabledUncheckedBorderColor , disabledUncheckedIconColor )
create an instance with arbitrary colors. See SwitchDefaults.colors for the default implementation.
Signature
constructor(checkedThumbColor: Color, checkedTrackColor: Color, checkedBorderColor: Color, checkedIconColor: Color, uncheckedThumbColor: Color, uncheckedTrackColor: Color, uncheckedBorderColor: Color, uncheckedIconColor: Color, disabledCheckedThumbColor: Color, disabledCheckedTrackColor: Color, disabledCheckedBorderColor: Color, disabledCheckedIconColor: Color, disabledUncheckedThumbColor: Color, disabledUncheckedTrackColor: Color, disabledUncheckedBorderColor: Color, disabledUncheckedIconColor: Color)
Parameters
checkedThumbColor: Color
  the color used for the thumb when enabled and checked
checkedTrackColor: Color
  the color used for the track when enabled and checked
checkedBorderColor: Color
  the color used for the border when enabled and checked
checkedIconColor: Color
  the color used for the icon when enabled and checked
uncheckedThumbColor: Color
  the color used for the thumb when enabled and unchecked
uncheckedTrackColor: Color
  the color used for the track when enabled and unchecked
uncheckedBorderColor: Color
  the color used for the border when enabled and unchecked
uncheckedIconColor: Color
  the color used for the icon when enabled and unchecked
disabledCheckedThumbColor: Color
  the color used for the thumb when disabled and checked
disabledCheckedTrackColor: Color
  the color used for the track when disabled and checked
disabledCheckedBorderColor: Color
  the color used for the border when disabled and checked
disabledCheckedIconColor: Color
  the color used for the icon when disabled and checked
disabledUncheckedThumbColor: Color
  the color used for the thumb when disabled and unchecked
disabledUncheckedTrackColor: Color
  the color used for the track when disabled and unchecked
disabledUncheckedBorderColor: Color
  the color used for the border when disabled and unchecked
disabledUncheckedIconColor: Color
  the color used for the icon when disabled and unchecked

Properties

checkedBorderColor : Color
[Get]
Signature
val checkedBorderColor: Color
checkedIconColor : Color
[Get]
Signature
val checkedIconColor: Color
checkedThumbColor : Color
[Get]
Signature
val checkedThumbColor: Color
checkedTrackColor : Color
[Get]
Signature
val checkedTrackColor: Color
disabledCheckedBorderColor : Color
[Get]
Signature
val disabledCheckedBorderColor: Color
disabledCheckedIconColor : Color
[Get]
Signature
val disabledCheckedIconColor: Color
disabledCheckedThumbColor : Color
[Get]
Signature
val disabledCheckedThumbColor: Color
disabledCheckedTrackColor : Color
[Get]
Signature
val disabledCheckedTrackColor: Color
disabledUncheckedBorderColor : Color
[Get]
Signature
val disabledUncheckedBorderColor: Color
disabledUncheckedIconColor : Color
[Get]
Signature
val disabledUncheckedIconColor: Color
disabledUncheckedThumbColor : Color
[Get]
Signature
val disabledUncheckedThumbColor: Color
disabledUncheckedTrackColor : Color
[Get]
Signature
val disabledUncheckedTrackColor: Color
uncheckedBorderColor : Color
[Get]
Signature
val uncheckedBorderColor: Color
uncheckedIconColor : Color
[Get]
Signature
val uncheckedIconColor: Color
uncheckedThumbColor : Color
[Get]
Signature
val uncheckedThumbColor: Color
uncheckedTrackColor : Color
[Get]
Signature
val uncheckedTrackColor: Color

Functions

copy ( checkedThumbColor , checkedTrackColor , checkedBorderColor , checkedIconColor , uncheckedThumbColor , uncheckedTrackColor , uncheckedBorderColor , uncheckedIconColor , disabledCheckedThumbColor , disabledCheckedTrackColor , disabledCheckedBorderColor , disabledCheckedIconColor , disabledUncheckedThumbColor , disabledUncheckedTrackColor , disabledUncheckedBorderColor , disabledUncheckedIconColor )
Returns a copy of this SwitchColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”
Signature
fun copy(checkedThumbColor: Color, checkedTrackColor: Color, checkedBorderColor: Color, checkedIconColor: Color, uncheckedThumbColor: Color, uncheckedTrackColor: Color, uncheckedBorderColor: Color, uncheckedIconColor: Color, disabledCheckedThumbColor: Color, disabledCheckedTrackColor: Color, disabledCheckedBorderColor: Color, disabledCheckedIconColor: Color, disabledUncheckedThumbColor: Color, disabledUncheckedTrackColor: Color, disabledUncheckedBorderColor: Color, disabledUncheckedIconColor: Color): SwitchColors
Parameters
checkedThumbColor: Color
checkedTrackColor: Color
checkedBorderColor: Color
checkedIconColor: Color
uncheckedThumbColor: Color
uncheckedTrackColor: Color
uncheckedBorderColor: Color
uncheckedIconColor: Color
disabledCheckedThumbColor: Color
disabledCheckedTrackColor: Color
disabledCheckedBorderColor: Color
disabledCheckedIconColor: Color
disabledUncheckedThumbColor: Color
disabledUncheckedTrackColor: Color
disabledUncheckedBorderColor: Color
disabledUncheckedIconColor: Color
equals ( other )
Signature
open operator override fun equals(other: Any?): Boolean
Parameters
other: Any?
Returns
Boolean
hashCode ()
Signature
open override fun hashCode(): Int
Returns
Int