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
MutableRemoteBitmap

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

MutableRemoteBoolean

A mutable implementation of RemoteBoolean.

MutableRemoteFloat

A mutable implementation of RemoteFloat.

MutableRemoteInt

A mutable implementation of RemoteInt.

MutableRemoteLong

A mutable implementation of RemoteLong.

MutableRemoteString

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

RemoteBitmap

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

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.

RemoteFloat

Abstract base class for all remote float representations.

RemoteInt

Abstract base class for all remote integer representations.

RemoteLong

Abstract base class for all remote long representations.

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-alpha07
open val constantValue: T

The constant value held by this state.

constantValueOrNull

Added in 1.0.0-alpha07
val constantValueOrNull: T?

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

hasConstantValue

Added in 1.0.0-alpha07
open val hasConstantValueBoolean

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

If true, constantValue will return the constant value.