gpgs.snapshots.save()

Type String
Return value none
Revision Release 2024.3703
Keywords Google Play Games Services, game network, gpgs
See also gpgs.snapshots.*
gpgs.*

Overview

Commits any modifications made to the snapshot. This will cause the changes to be synced to the server in the background.

Syntax

gpgs.snapshots.save(params)
params (required)

Table. Contains parameters — see the next section for details.

Parameter Reference

snapshotId (required)

String. Snapshot to save.

description (optional)

String. The description of this snapshot to be displayed to the player.

playedTime (optional)

Integer. The number of milliseconds played by the player.

progress (optional)

Integer. The progress value.

image (optional)

Table. Image object. File to upload and use as a snapshot cover image.

listener (optional)

Listener. Receives save event.