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

```kotlin
public abstract class BaseRemoteState<T : Any> internal constructor() : RemoteState<T>
```

Common base interface for all Remote types.

## Functions

<h2 id="getidforcreationstate-creationstate">getIdForCreationState</h2>

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public open fun getIdForCreationState(creationState: RemoteComposeCreationState): Int
```

Returns a new or cached id for this [RemoteState](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/RemoteState) within the `RemoteComposeCreationState`.

#### Parameters

| | |
| --- | --- |
| creationState | The `RemoteComposeCreationState` for which the ID will be generated. |

#### Returns

| | |
| --- | --- |
|  | The ID of this remote value, for the given [creationState](/jetpack-compose/androidx.compose.remote/remote-creation-compose/properties/creationState). |

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

<h2 id="getlongidforcreationstate-creationstate">getLongIdForCreationState</h2>

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public open fun getLongIdForCreationState(creationState: RemoteComposeCreationState): Long
```

#### Parameters

| | |
| --- | --- |
| creationState | The `RemoteComposeCreationState` for which the ID will be generated. |

#### Returns

| | |
| --- | --- |
|  | The ID of this remote value, for the given [creationState](/jetpack-compose/androidx.compose.remote/remote-creation-compose/properties/creationState) as a long. |

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

<h2 id="getfloatidforcreationstate-creationstate">getFloatIdForCreationState</h2>

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public open fun getFloatIdForCreationState(creationState: RemoteComposeCreationState): Float
```

#### Parameters

| | |
| --- | --- |
| creationState | The `RemoteComposeCreationState` for which the ID will be generated. |

#### Returns

| | |
| --- | --- |
|  | The ID of this remote value encoded in a Float NaN, for the given [creationState](/jetpack-compose/androidx.compose.remote/remote-creation-compose/properties/creationState). |

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

<h2 id="writetodocument-creationstate">writeToDocument</h2>

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public abstract fun writeToDocument(creationState: RemoteComposeCreationState): Int
```

Writes the Remote Value to the [creationState](/jetpack-compose/androidx.compose.remote/remote-creation-compose/properties/creationState) and returns the allocated ID.

#### Parameters

| | |
| --- | --- |
| creationState | The `RemoteComposeCreationState` to write to. |

#### Returns

| | |
| --- | --- |
|  | The ID allocated by the `RemoteComposeWriter`. |