gpgs.snapshots.open()

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

Overview

Retrieves information on all snapshots for the current game.

Syntax

gpgs.snapshots.open(params)
params (required)

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

Parameter Reference

filename (required)

String. Snapshot unique name.

create (optional)

Boolean. If true, in case of snapshot not being found with the specified filename, a new snapshot will be created and opened.

conflictPolicy (optional)

String. The conflict resolution policy to use for this snapshot. Possibe values: "manual", "highest progress", "last known good", "longest playtime", "most recently modified". Default is "manual".

listener (optional)

Listener. Receives open event.