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

```kotlin
public 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](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/offset), but uses [RemoteFloat](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteFloat) for its
coordinates to support remote state synchronization.

## Secondary Constructors

```kotlin
public constructor(x: RemoteFloat, y: RemoteFloat) {
    this.x = x
    this.y = y
}
```

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public constructor(x: Float, y: Float) : this(RemoteFloat(x), RemoteFloat(y))
```

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public constructor(x: Float, y: RemoteFloat) : this(RemoteFloat(x), y)
```

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public constructor(x: RemoteFloat, y: Float) : this(x, RemoteFloat(y))
```

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public constructor(offset: Offset) {
    this.x = offset.x.rf
    this.y = offset.y.rf
}
```

## Functions

<h2 id="asoffset-scope">asOffset</h2>

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public fun asOffset(scope: RemoteStateScope): Offset
```

## Companion Object

#### Properties

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

```kotlin
public val Zero: RemoteOffset
```

A [RemoteOffset](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteOffset) with both `x` and `y` set to zero.