class RemoteOffset


An immutable 2D floating-point offset that can be used to represent a point or a vector in a remote UI context.

This class is similar to androidx.compose.ui.geometry.Offset, but uses RemoteFloat for its coordinates to support remote state synchronization.

Summary

Public companion properties

RemoteOffset

A RemoteOffset with both x and y set to zero.

Public constructors

Public properties

RemoteFloat

The magnitude of the smaller of the two components, x and y.

RemoteFloat

The horizontal displacement.

RemoteFloat

The vertical displacement.

Public companion properties

Zero

Added in 1.0.0-alpha07
val ZeroRemoteOffset

A RemoteOffset with both x and y set to zero.

Public constructors

RemoteOffset

Added in 1.0.0-alpha07
RemoteOffset(x: RemoteFloat, y: RemoteFloat)

Public properties

minDimension

Added in 1.0.0-alpha07
val minDimensionRemoteFloat

The magnitude of the smaller of the two components, x and y.

x

Added in 1.0.0-alpha07
val xRemoteFloat

The horizontal displacement.

y

Added in 1.0.0-alpha07
val yRemoteFloat

The vertical displacement.