Class

SelectableSurfaceScale

Defines the scale for all TV Interaction states of selectable Surface.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
class SelectableSurfaceScale
internal constructor(
    @FloatRange(from = 0.0) internal val scale: Float,
    @FloatRange(from = 0.0) internal val focusedScale: Float,
    @FloatRange(from = 0.0) internal val pressedScale: Float,
    @FloatRange(from = 0.0) internal val selectedScale: Float,
    @FloatRange(from = 0.0) internal val disabledScale: Float,
    @FloatRange(from = 0.0) internal val focusedSelectedScale: Float,
    @FloatRange(from = 0.0) internal val focusedDisabledScale: Float,
    @FloatRange(from = 0.0) internal val pressedSelectedScale: Float,
    @FloatRange(from = 0.0) internal val selectedDisabledScale: Float,
    @FloatRange(from = 0.0) internal val focusedSelectedDisabledScale: Float,
)

Defines the scale for all TV Interaction states of selectable Surface. Note: This scale must be a non-negative float.

Companion Object

Properties

Android
val None =
        SelectableSurfaceScale(
            scale = 1f,
            focusedScale = 1f,
            pressedScale = 1f,
            selectedScale = 1f,
            disabledScale = 1f,
            focusedSelectedScale = 1f,
            focusedDisabledScale = 1f,
            pressedSelectedScale = 1f,
            selectedDisabledScale = 1f,
            focusedSelectedDisabledScale = 1f,
        )

Signifies the absence of a ScaleIndication in selectable surface.