Class

RemoteSize

An immutable, 2D floating-point size with width and height represented as RemoteFloats.

Source set: Android
public class RemoteSize(
    public val width: RemoteFloat,
    public val height: RemoteFloat,
)

An immutable, 2D floating-point size with width and height represented as RemoteFloats.

This class is used in remote creation to represent dimensions that may be backed by remote state.

Properties

minDimension

Source set: Android
public val minDimension: RemoteFloat

The lesser of the magnitudes of the width and the height.

center

Source set: Android
public val center: RemoteOffset

The offset to the center of this RemoteSize.

Functions

offsetSize

Source set: Android
public fun offsetSize(offset: RemoteOffset): RemoteSize

Returns a RemoteSize with the width and height decreased by offset's x and y coordinates.

Parameters

offset The RemoteOffset to subtract from this size.

Members

Companion

Source set: Android
public companion object

Properties

Zero

Source set: Android
public val Zero: RemoteSize = RemoteSize(0f.rf, 0f.rf)

A RemoteSize with width and height set to 0.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: