MutableStateFlowSerializerKt

Added in 1.3.0

public final class MutableStateFlowSerializerKt

Summary

Public methods

static final @NonNull MutableStateFlowSerializer<@NonNull T>

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

Public methods

MutableStateFlowSerializer

public static final @NonNull MutableStateFlowSerializer<@NonNull T> Object> MutableStateFlowSerializer()

Creates a KSerializer for a MutableStateFlow 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 MutableStateFlow.

Parameters
Object>

The type of the value stored in the MutableStateFlow.