gpgs.snapshots.open()

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

Overview

Opens a snapshot with the given filename.

Syntax

gpgs.snapshots.open( 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.

filename (required)

String. The snapshot's unique file name.

create (optional)

Boolean. If true, and in the case of a 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. Possible values include:

  • "manual"
  • "highest progress"
  • "last known good" (default)
  • "longest playtime"
  • "most recently modified"
listener (optional)

Listener. Listener function which receives an open event.