Snapshot
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Data interface for a representation of a saved game. This includes both the metadata and
the actual game content.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Inherited Method Summary
From interface
com.google.android.gms.common.data.Freezable
abstract
Snapshot
|
freeze()
|
abstract boolean |
isDataValid()
|
From interface android.os.Parcelable
abstract int |
describeContents()
|
abstract void |
writeToParcel( Parcel arg0,
int arg1)
|
Public Methods
Retrieves the metadata for this snapshot.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eSnapshot\u003c/code\u003e is a data interface representing a saved game, including metadata and game content.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to the snapshot's metadata and content through \u003ccode\u003egetMetadata()\u003c/code\u003e and \u003ccode\u003egetSnapshotContents()\u003c/code\u003e methods.\u003c/p\u003e\n"],["\u003cp\u003eSnapshots can be frozen to ensure data immutability using the \u003ccode\u003efreeze()\u003c/code\u003e method inherited from \u003ccode\u003eFreezable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSnapshot\u003c/code\u003e inherits from \u003ccode\u003eParcelable\u003c/code\u003e, allowing it to be passed between components or processes.\u003c/p\u003e\n"]]],["The `Snapshot` interface represents a saved game, including its metadata and content. Key actions involve retrieving the `SnapshotMetadata` via `getMetadata()`, which provides details about the saved game. It also allows retrieving the `SnapshotContents` using `getSnapshotContents()`, enabling access to and potential updates of the game's data. `Snapshot` also implements `Freezable` to make the object unchangeable. It implements `Parcelable` so it can be sent through intents. Lastly `SnapshotEntity` is a known subclass.\n"],null,[]]