class RemoteTextUnit : BaseRemoteState


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

Summary

Public functions

RemoteFloat

Converts this RemoteTextUnit to pixels using the screen's density.

Public properties

TextUnitType

The TextUnitType (Sp or Em).

RemoteFloat

The RemoteFloat that holds the scalar value.

Inherited properties

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

The constant value held by this state.

open Boolean

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

Public functions

toPx

fun toPx(): RemoteFloat

Converts this RemoteTextUnit to pixels using the screen's density.

Public properties

type

val typeTextUnitType

The TextUnitType (Sp or Em).

value

val valueRemoteFloat

The RemoteFloat that holds the scalar value.