B2Metric.init(config): Promise<void> | Initialize the SDK. Must be called before any other method. |
B2Metric.logEvent(name, options?): void | Track a custom event. |
B2Metric.setUser(user): void | Identify the current user and update their profile. |
B2Metric.registerPushToken(token, provider): void | Register a push notification token. |
B2Metric.trackPushOpened(data): void | Track a push notification open. |
B2Metric.flush(): Promise<void> | Send all pending events immediately. |
B2Metric.destroy(): Promise<void> | Flush pending events and shut down the SDK. |