androidx.savedstate.compose.serialization.serializers

Classes

MutableStateSerializer

A KSerializer for MutableState.

Cmn

Top-level functions summary

inline MutableStateSerializer<T>

Creates a KSerializer for a MutableState containing a Serializable value of type T.

Cmn

Top-level functions

MutableStateSerializer

inline fun <T : Any?> MutableStateSerializer(): MutableStateSerializer<T>

Creates a KSerializer for a MutableState containing a Serializable value of type T.

This inline function infers the state type T automatically and retrieves the appropriate KSerializer for serialization and deserialization of MutableState.

Parameters
<T : Any?>

The type of the value stored in the MutableState.

Returns
MutableStateSerializer<T>

A MutableStateSerializer for handling MutableState containing a Serializable type T.