Storage.onSave method

Sets the handler to save new versions of a game's save data.

Signature

onSave(handler: (gameId: string, data: Uint8Array) => Promise<void>): void;

Parameters

Name Type Optional Description
handler (gameId: string, data: Uint8Array) => Promise<void> No

Returns

void