HintTexts

data class HintTexts(val defaultText: String, val slidedText: String)

A data class that holds the text content for the hint displayed in the SlideToUnlock component.

This class is marked as Immutable to signal to the Compose compiler that its properties will not change after creation. This allows for performance optimizations, as composables that use this class as a parameter can be safely skipped during recomposition if the instance has not changed.

Constructors

Link copied to clipboard
constructor(defaultText: String, slidedText: String)

Types

Link copied to clipboard
object Companion

A companion object to provide default values and factory functions for HintTexts.

Properties

Link copied to clipboard

The text displayed when the thumb is at the start position.

Link copied to clipboard

The text displayed when the thumb is at the end position or in a loading state.