Storage interface

Storage controls and events.

Allows partners to provide the "cloud save" feature, persisting users' save data across sessions.

WARNING: if the storage API is used, both onLoad and onSave must be called before calling GameSnacks.init.

Signature

interface Storage

Method signatures

Name Description
onLoad(handler) Sets the handler to return a game's save data.
onSave(handler) Sets the handler to save new versions of a game's save data.