Page

enum Page(val level: Int) : Enum<Page>

Represents the different pages in the application along with their hierarchy levels.

Constructors

Link copied to clipboard
private constructor(level: Int)

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val level: Int

The hierarchy level of the page, where a higher number indicates a deeper level.

Functions

Link copied to clipboard
@Composable
fun Page.createPageView(vm: ViewModel<out UiState>, gameSession: MutableState<GameSession>, pagesState: MutableState<PagesState>): @Composable ReversiScope.() -> Unit

Creates and returns the appropriate composable page view based on the current Page type.

Link copied to clipboard
fun Page.createViewModel(scope: CoroutineScope, appState: AppStateImpl, gameSession: MutableState<GameSession>, audioThemeState: MutableState<AudioThemeState>, pagesState: MutableState<PagesState>): ViewModel<out UiState>?

Creates and returns the appropriate ViewModel instance based on the current Page type.

Link copied to clipboard
fun valueOf(value: String): Page

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
fun values(): Array<Page>

Returns an array containing the constants of this enum type, in the order they're declared.