Storage.onLoad method

Sets the handler to return a game's save data.

Signature

onLoad(handler: (gameId: string) => Promise<Uint8Array>): void;

Parameters

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

Returns

void