baseerh_sdk library

Baseera analytics & engagement SDK for Flutter.

Quick start:

import 'package:baseerh_sdk/baseerh_sdk.dart';

await Baseerh.instance.setup(
  const BaseerhConfig(
    apiKey: 'pk_live_xxx',
    // host defaults to https://api.baseerh.com
  ),
);

Baseerh.instance.capture('product_viewed', properties: {'sku': 'A-100'});

Classes

Baseerh
The Baseera Flutter SDK.
BaseerhConfig
Immutable SDK configuration. Defaults mirror the iOS/Android/React Native mobile SDKs so behaviour is consistent across platforms.
ContentCard
An engagement content card returned by /v1/content-cards.
SdkError
Diagnostic error delivered to registered Baseerh.onError callbacks.
Survey
A survey returned by /v1/surveys.
UserPreference
A notification preference returned by /v1/preferences.

Enums

ConsentState
PDPL consent state. Capture is blocked while denied.
PushProvider
Push provider for device-token registration.
SdkErrorType
Categories of SDK errors surfaced via Baseerh.onError.