object.modify()

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

Overview

Overwrites the specified data into the snapshot with a specified offset. The contents of the snapshot will be replaced with the data provided in content. The data will be persisted on disk, but is not uploaded to the server until the snapshot is saved.

Returns Boolean - true on success.

Syntax

object.modify(data, offset)
data (optional)

String. The data bytes to modify the snapshot content with.

offset (optional)

Integer. The position in content to start writing from.