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 2024-10-31 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 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eSnapshotMetadataChange\u003c/code\u003e allows developers to modify the metadata of a snapshot, such as the cover image, description, played time, and progress value.\u003c/p\u003e\n"],["\u003cp\u003eUnset fields in a \u003ccode\u003eSnapshotMetadataChange\u003c/code\u003e object will retain their existing values in the snapshot metadata.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSnapshotMetadataChange.EMPTY_CHANGE\u003c/code\u003e can be used to commit a snapshot change without altering any metadata.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSnapshotMetadataChange.Builder\u003c/code\u003e class is used to create instances of \u003ccode\u003eSnapshotMetadataChange\u003c/code\u003e.\u003c/p\u003e\n"]]],["`SnapshotMetadataChange` allows modifications to a snapshot's metadata. Use the `Builder` to create objects of it. Key actions include setting a new cover image (`getCoverImage`), updating the description (`getDescription`), adjusting played time (`getPlayedTimeMillis`), and changing the progress value (`getProgressValue`). `EMPTY_CHANGE` is provided as a sentinel object, enabling committing changes without metadata modification. Any field left unset will retain its existing value.\n"],null,["public interface **SnapshotMetadataChange** \nA collection of changes to apply to the metadata of a snapshot. Fields that are not set\nwill retain their current values. \n\nNested Class Summary\n\n|-------|---|---|--------------------------------------------------------------------------------------------------------------------------------|\n| class | [SnapshotMetadataChange.Builder](/android/reference/com/google/android/gms/games/snapshot/SnapshotMetadataChange.Builder) || Builder for [SnapshotMetadataChange](/android/reference/com/google/android/gms/games/snapshot/SnapshotMetadataChange) objects. |\n\nField Summary\n\n|-------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| public static final [SnapshotMetadataChange](/android/reference/com/google/android/gms/games/snapshot/SnapshotMetadataChange) | [EMPTY_CHANGE](/android/reference/com/google/android/gms/games/snapshot/SnapshotMetadataChange#EMPTY_CHANGE) | Sentinel object to use to commit a change without modifying the metadata. |\n\nPublic Method Summary\n\n|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Bitmap](//developer.android.com/reference/android/graphics/Bitmap.html) | [getCoverImage](/android/reference/com/google/android/gms/games/snapshot/SnapshotMetadataChange#getCoverImage())() Returns the new cover image to set for the snapshot. |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | [getDescription](/android/reference/com/google/android/gms/games/snapshot/SnapshotMetadataChange#getDescription())() Returns the new description to set for the snapshot. |\n| abstract [Long](//developer.android.com/reference/java/lang/Long.html) | [getPlayedTimeMillis](/android/reference/com/google/android/gms/games/snapshot/SnapshotMetadataChange#getPlayedTimeMillis())() Returns the new played time to set for the snapshot. |\n| abstract [Long](//developer.android.com/reference/java/lang/Long.html) | [getProgressValue](/android/reference/com/google/android/gms/games/snapshot/SnapshotMetadataChange#getProgressValue())() Returns the new progress value to set for the snapshot. |\n\nFields \n\npublic static final SnapshotMetadataChange **EMPTY_CHANGE** \nSentinel object to use to commit a change without modifying the metadata.\n\nPublic Methods \n\npublic abstract [Bitmap](//developer.android.com/reference/android/graphics/Bitmap.html)\n**getCoverImage** () \nReturns the new cover image to set for the snapshot. \n\npublic abstract [String](//developer.android.com/reference/java/lang/String.html) **getDescription** () \nReturns the new description to set for the snapshot. \n\npublic abstract [Long](//developer.android.com/reference/java/lang/Long.html) **getPlayedTimeMillis** () \nReturns the new played time to set for the snapshot. \n\npublic abstract [Long](//developer.android.com/reference/java/lang/Long.html) **getProgressValue** () \nReturns the new progress value to set for the snapshot."]]