[android-components](../index.md) / [mozilla.components.browser.session.ext](index.md) / [writeSnapshotItem](./write-snapshot-item.md)

# writeSnapshotItem

`fun <ERROR CLASS>.writeSnapshotItem(item: `[`Item`](../mozilla.components.browser.session/-session-manager/-snapshot/-item/index.md)`, serializer: `[`SnapshotSerializer`](../mozilla.components.browser.session.storage/-snapshot-serializer/index.md)` = SnapshotSerializer()): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/session/src/main/java/mozilla/components/browser/session/ext/AtomicFile.kt#L63)

Saves a single [SessionManager.Snapshot.Item](../mozilla.components.browser.session/-session-manager/-snapshot/-item/index.md) to this [AtomicFile](#).

