# SnapshotId

Artifact: [androidx.compose.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/snapshots/SnapshotId.+class:androidx.compose.runtime.snapshots.SnapshotId) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.10.0) Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  class SnapshotId
  ```
- JS

  ```
  actual typealias SnapshotId = Double
  ```
- android N JS

  ```
  actual typealias SnapshotId = Long
  ```

*** ** * ** ***

The type of `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/Snapshot#snapshotId()`. On most platforms this is a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` but may be a different type if the platform target does not support `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` efficiently (such as JavaScript).

## Summary

| ### Extension functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotId.https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotId#(androidx.compose.runtime.snapshots.SnapshotId).toInt()()` | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotId.https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotId#(androidx.compose.runtime.snapshots.SnapshotId).toLong()()` | Cmn |

## Extension functions

### SnapshotId.toInt

Cmn Artifact: [androidx.compose.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/snapshots/SnapshotId.kt+function:toInt)

```
fun SnapshotId.toInt(): Int
```

### SnapshotId.toLong

Cmn Artifact: [androidx.compose.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/snapshots/SnapshotId.kt+function:toLong)

```
fun SnapshotId.toLong(): Long
```