🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

RemoteTextUnit

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

Source set: Android
public class RemoteTextUnit internal constructor(public val value: RemoteFloat, public val type: TextUnitType) :
    BaseRemoteState<TextUnit>(RemoteStateInstanceKey())

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

Properties

constantValueOrNull

Source set: Android
override val constantValueOrNull: TextUnit?

Functions

toPx

Source set: Android
public fun toPx(density: RemoteDensity): RemoteFloat

Converts this RemoteTextUnit to pixels using the provided density.

toPx

Source set: Android
public fun toPx(): RemoteFloat

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

Content updated: