gpgs.snapshots.save()

Type Function
Return value none
Revision Release 2024.3703
Keywords Google Play Games Services, game network, gpgs, snapshots, save
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 for the call — see the next section for details.

Parameter Reference

The params table contains parameters for the call.

snapshot (required)

Snapshot. The snapshot to save.

description (optional)

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

playedTime (optional)

Number. The number of milliseconds played by the player.

progress (optional)

Number. The progress value.

image (optional)

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

listener (optional)

Listener. Listener function which receives a save event.