object.modify()

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

Overview

Overwrites the provided data into the snapshot with a specified offset and returns true upon success. The data will persist on disk but it's not uploaded to the server until the snapshot is saved.

Syntax

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

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

offset (required)

Number. The position in content to start writing from.