class MutableRemoteEnum<T : Enum<T>> : RemoteEnum, MutableRemoteState


A mutable implementation of RemoteEnum.

Summary

Public companion functions

inline operator MutableRemoteEnum<T>
<T : Enum<T>> invoke(initialValue: T)

Creates a MutableRemoteEnum with an initial value.

Public properties

MutableRemoteInt

Inherited functions

From androidx.compose.remote.creation.compose.state.RemoteEnum
RemoteInt
toRemoteInt(mapping: (T) -> RemoteInt)

Converts this RemoteEnum to a RemoteInt representation using a provided mapping.

RemoteString
toRemoteString(mapping: (T) -> RemoteString)

Converts this RemoteEnum to a RemoteString representation.

Inherited properties

From androidx.compose.remote.creation.compose.state.RemoteEnum
open T?

The constant value or null if there isn't one.

RemoteInt

Converts this RemoteEnum to its underlying RemoteInt representation, using the Enum ordinal.

From androidx.compose.remote.creation.compose.state.RemoteState
open T

The constant value held by this state.

open Boolean

Whether or not this remote state evaluates to a constant value.

Public companion functions

invoke

inline operator fun <T : Enum<T>> invoke(initialValue: T): MutableRemoteEnum<T>

Creates a MutableRemoteEnum with an initial value.

Parameters
initialValue: T

The initial value for this mutable enum.

Returns
MutableRemoteEnum<T>

A MutableRemoteEnum instance.

Public properties

remoteInt

Added in 1.0.0-alpha16
val remoteIntMutableRemoteInt