Class

MutableRemoteEnum

A mutable implementation of RemoteEnum.

Source set: Android
public class MutableRemoteEnum<T : Enum<T>> public constructor(public val remoteInt: MutableRemoteInt, enumEntries: EnumEntries<T>) :
    RemoteEnum<T>(remoteInt, enumEntries), MutableRemoteState<T>

A mutable implementation of RemoteEnum.

Parameters

T The enum type.

Properties

asEncodedMutable

Source set: Android
override val asEncodedMutable: MutableRemoteInt

Members

Companion

Source set: Android
public companion object

Functions

invoke

Source set: Android
public inline operator fun <reified T : Enum<T>> invoke(
            initialValue: T
        ): MutableRemoteEnum<T>

Creates a MutableRemoteEnum with an initial value.

Parameters

initialValue The initial value for this mutable enum.

Return

A MutableRemoteEnum instance.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: