AI-generated Key Takeaways
-
Snapshot is a data interface representing a saved game, encompassing both metadata and game content.
-
It implements Freezable and Parcelable interfaces.
-
It provides methods to retrieve the SnapshotMetadata and SnapshotContents associated with the saved game data.
| 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
Public Method Summary
| abstract SnapshotMetadata |
getMetadata()
Retrieves the metadata for this snapshot.
|
| abstract SnapshotContents |
getSnapshotContents()
Retrieve the
SnapshotContents associated with this snapshot.
|
Inherited Method Summary
Public Methods
public abstract SnapshotMetadata getMetadata ()
Retrieves the metadata for this snapshot.
Returns
- The
SnapshotMetadataassociated with this snapshot.
public abstract SnapshotContents getSnapshotContents ()
Retrieve the
SnapshotContents associated with this snapshot. This object can be used to
update the data of a snapshot. Note that this will return null if this snapshot was not
obtained via
SnapshotsClient.open(SnapshotMetadata).
Returns
- The
SnapshotContentsfor this snapshot, or null if the snapshot is not opened.