interface RemoteState<T : Any?>

Known direct subclasses
BaseRemoteState

Common base interface for all Remote types.

MutableRemoteState

A readable and writable Remote Compose State value.

Known indirect subclasses
MutableRemoteBoolean

A mutable implementation of RemoteBoolean.

MutableRemoteEnum

A mutable implementation of RemoteEnum.

MutableRemoteFloat

A mutable implementation of RemoteFloat.

MutableRemoteImageBitmap

A mutable implementation of RemoteImageBitmap that holds its value in a MutableState.

MutableRemoteInt

A mutable implementation of RemoteInt.

MutableRemoteLong

A mutable implementation of RemoteLong.

MutableRemoteString

An implementation of RemoteString that holds its value in a MutableState.

RemoteBoolean

A class representing a remote boolean value.

RemoteColor

Represents a color that can be used with canvas APIs.

RemoteDp

Represents a Density-independent pixel (Dp) value.

RemoteEnum

A class representing a remote enum value.

RemoteFloat

Abstract base class for all remote float representations.

RemoteImageBitmap

Abstract base class for all remote bitmap representations in Compose Remote, this class extends RemoteState.

RemoteInt

Abstract base class for all remote integer representations.

RemoteLong

Abstract base class for all remote long representations.

RemoteMatrix3x3

Represents a 3x3 transformation matrix.

RemoteString

Abstract base class for all remote string representations.

RemoteTextUnit

Represents a TextUnit value (Sp or Em) backed by a RemoteFloat.


A readable but not writable Remote Compose State value.

RemoteState represents a value that is available during remote document creation. It may represent either a constant value or a dynamic expression that evaluates on the remote rendering engine.

In Remote Compose recording mode, a type-specific ID is used to refer to this state within RemoteComposeCreationState.

Parameters
<T : Any?>

The type of the value held by this state.

Summary

Nested types

Represents the domain (namespace) for named remote states.

The system-defined domain, used for platform-level or framework state.

The default user-defined domain.

Public properties

open T

The constant value held by this state.

T?

The constant value held by this state, or null if the state is dynamic.

open Boolean

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

Public properties

constantValue

Added in 1.0.0-alpha19
open val constantValue: T

The constant value held by this state.

constantValueOrNull

Added in 1.0.0-alpha19
val constantValueOrNull: T?

The constant value held by this state, or null if the state is dynamic.

hasConstantValue

Added in 1.0.0-alpha19
open val hasConstantValueBoolean

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

If true, constantValue will return the constant value.