What the SDK does
- Configures and validates your integration (config schema 1) before any traffic leaves the device.
- Manages the session lifecycle: initialize → start → authenticate → refresh → logout → shutdown.
- Flushes events in batches over the event plane with offline buffering.
- Polls realtime events — session, wallet, and status events.
- Drives secure purchases through
PurchaseClientwith an on-device environment-integrity pre-flight. - Reports diagnostics and environment health.
Public surfaces by language
Core concepts used everywhere
- Config — validated
MusterBoxConfig; invalid config fails fast withInvalidConfigbefore networking begins. - Runtime options —
Manual(you calltick) orThreaded(background worker) with aTickBudget. - Status — an explicit lifecycle machine you can observe via
get_status. - Errors —
SdkErrorwith stableSdkErrorCodes (MBX-SDK-001 … 013).

