CreditState

State that holds information to correctly deal with UI components related to the current Credit.

Use rememberCreditState to get an instance of this class.

Properties

Link copied to clipboard

The current Credit.

Link copied to clipboard

Whether the current player position is inside a Credit.

Functions

Link copied to clipboard
fun onClick()

Handles the interaction with a "Skip credit" button by seeking to the end of the current Credit. This does nothing if currentCredit is null.