GameSkinStorage class

The bridge storage.* backend: string values in SharedPreferences, keyed by namespace + key. The namespace is project + skinId (shared by all versions of the skin) + the current user identity, so users never see each other's game state.

Values are capped at 16 KB and a namespace at 64 KB total; over either the write is refused with GameStorageWriteResult.quotaExceeded and nothing is stored. Keys must match gameStorageKeyRegex. Cleared for every namespace on SDK logout/user reset via clearAll. Never throws.

Flutter's SharedPreferences is one shared store, so every entry carries the prefsName prefix that Android uses as its file name.

Constructors

GameSkinStorage(SharedPreferences _prefs)

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(String namespace, String key) → String?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String namespace, String key) → void
set(String namespace, String key, String value) → GameStorageWriteResult
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

clearAll([SharedPreferences? prefs]) → Future<void>
Wipes every game namespace: called on SDK logout/user reset. Never throws.
isValidKey(String key) → bool
namespaceFor(String projectId, String skinId, String identity) → String
Namespace for one skin + user: project/skinId/identity.
open() → Future<GameSkinStorage?>

Constants

prefsName → const String