Following the deprecation of the Google Sign-In API, we are removing the games v1 SDK in 2026. After February 2025, you will be unable to publish titles that are newly integrated with games v1 SDK, on Google Play. We recommend that you use the games v2 SDK instead.
While existing titles with the previous games v1 integrations continue to function for a couple of years, you are encouraged to migrate to v2 starting June 2025.
SnapshotMetadataChange
Stay organized with collections
Save and categorize content based on your preferences.
A collection of changes to apply to the metadata of a snapshot. Fields that are not set
will retain their current values.
Fields
Sentinel object to use to commit a change without modifying the metadata.
Public Methods
public abstract Bitmap
getCoverImage ()
Returns
- The new cover image to set for the snapshot.
public abstract String getDescription ()
Returns
- The new description to set for the snapshot.
public abstract Long getPlayedTimeMillis ()
Returns
- The new played time to set for the snapshot.
public abstract Long getProgressValue ()
Returns
- The new progress value to set for the 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-01-24 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-01-24 UTC."],[[["`SnapshotMetadataChange` allows developers to modify the metadata of a snapshot, such as the cover image, description, played time, and progress value."],["Unset fields in a `SnapshotMetadataChange` object will retain their existing values in the snapshot metadata."],["The `EMPTY_CHANGE` field provides a way to commit a change without altering any metadata."],["Developers can use the provided methods like `getCoverImage()`, `getDescription()`, `getPlayedTimeMillis()`, and `getProgressValue()` to access the changes defined in a `SnapshotMetadataChange` object."],["A `SnapshotMetadataChange.Builder` class is available for convenient creation of `SnapshotMetadataChange` instances."]]],["`SnapshotMetadataChange` defines modifications to a snapshot's metadata. It provides methods to get updates for the cover image, description, played time (in milliseconds), and progress value. Unspecified fields retain their current values. `EMPTY_CHANGE` is used to commit changes without altering metadata. A `Builder` class facilitates the creation of these `SnapshotMetadataChange` objects. The methods get the changes that are intended to be set.\n"]]