streamplay_analytics library

The only file anyone using this module should import (mirrors the web SDK's index.js — streamplay-analytics-sdk repo's src/index.js). Everything else under src/ is internal plumbing — no other export exists here on purpose, so no screen can ever reach past these functions to call a vendor SDK directly.

Classes

InitAnalyticsConfig
Options for initAnalytics. adapter is a test/manual override that skips the backend lookup entirely — the same escape hatch the web SDK's config.adapter provides, used by tests and any manual dashboard-free testing with a fake adapter.

Functions

identifyUser(String userId) → void
initAnalytics(InitAnalyticsConfig config) Future<void>
resetUser() → void
setScreenName(String? name) → void
trackEvent(String name, [Map<String, dynamic>? details]) → void