Snapshots

Represents a saved game.

For a list of methods for this resource, see the end of this page.

Resource representations

This is a JSON template for an snapshot object.

{
  "kind": "games#snapshot",
  "id": string,
  "driveId": string,
  "uniqueName": string,
  "type": string,
  "title": string,
  "description": string,
  "coverImage": {
    "kind": "games#snapshotImage",
    "width": integer,
    "height": integer,
    "mime_type": string,
    "url": string
  },
  "lastModifiedMillis": long,
  "durationMillis": long,
  "progressValue": long
}
Property name Value Description Notes
coverImage nested object The cover image of this snapshot. May be absent if there is no image.
coverImage.height integer The height of the image.
coverImage.kind string Uniquely identifies the type of this resource. Value is always the fixed string games#snapshotImage.
coverImage.mime_type string The MIME type of the image.
coverImage.url string The URL of the image. This URL may be invalidated at any time and should not be cached.
coverImage.width integer The width of the image.
description string The description of this snapshot.
driveId string The ID of the file underlying this snapshot in the Drive API. Only present if the snapshot is a view on a Drive file and the file is owned by the caller.
durationMillis long The duration associated with this snapshot, in millis.
id string The ID of the snapshot.
kind string Uniquely identifies the type of this resource. Value is always the fixed string games#snapshot.
lastModifiedMillis long The timestamp (in millis since Unix epoch) of the last modification to this snapshot.
progressValue long The progress value (64-bit integer set by developer) associated with this snapshot.
title string The title of this snapshot.
type string The type of this snapshot.
Possible values are:
  • "SAVE_GAME" - A snapshot representing a save game.


Acceptable values are:
  • "SAVE_GAME"
uniqueName string The unique name provided when the snapshot was created.

Methods

get
Retrieves the metadata for a given snapshot ID.
list
Retrieves a list of snapshots created by your application for the player corresponding to the player ID.