# Package-level declarations

## Types

MutableState
Link copied to clipboard
class MutableState < T >

Implementing the State interface mutable state of Hikage.

NonNullState
Link copied to clipboard
interface NonNullState < T > : State < T >

Definition a Hikage runtime state interface for non-nullable type.

NullableState
Link copied to clipboard
interface NullableState < T > : State < T ?>

Definition a Hikage runtime state interface for nullable type.

State
Link copied to clipboard
interface State < T > : ReadWriteProperty < Any ?, T >

Definition a Hikage runtime state interface.

## Functions

mutableStateOf
Link copied to clipboard
fun < T > mutableStateOf (value: T ): MutableState.NonNull < T >

Create a mutable state of Hikage with the specified value.

mutableStateOfNull
Link copied to clipboard
fun < T > mutableStateOfNull (value: T ? = null): MutableState.Nullable < T >

Create a mutable state of Hikage with the specified value.

setState
Link copied to clipboard
inline fun < T , R > R . setState (state: NonNullState < T >, crossinline apply: R .( T ) -> Unit )
inline fun < T , R > R . setState (state: NullableState < T >, crossinline apply: R .( T ?) -> Unit )

Set the Hikage state value.