<div class='sourceset sourceset-android'>Android</div>

```kotlin
public class RemoteSize
```

An immutable, 2D floating-point size with [width](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/width) and [height](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/height) represented as [RemoteFloat](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteFloat)s.

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

## Secondary Constructors

```kotlin
public constructor(width: RemoteFloat, height: RemoteFloat) {
    this.width = width
    this.height = height
}
```

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public constructor(size: Size) {
    this.width = size.width.rf
    this.height = size.height.rf
}
```

## Functions

<h2 id="offsetsize-offset">offsetSize</h2>

```kotlin
public fun offsetSize(offset: RemoteOffset): RemoteSize
```

Returns a [RemoteSize](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteSize) with the width and height decreased by the [offset](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/offset)'s x and y
coordinates, respectively.

<hr class="docs-overload-divider">

<h2 id="assize-scope">asSize</h2>

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public fun asSize(scope: RemoteStateScope): Size
```

## Companion Object

#### Properties

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public val Zero: RemoteSize
```

A [RemoteSize](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteSize) with [width](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/width) and [height](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/height) set to 0.