DigiaConfig class

Configuration parameters required to initialize the Digia SDK.

Pass an instance to Digia.initialize at application startup. The property set mirrors the native (Android / iOS) SDKs.

Minimal setup

await Digia.initialize(DigiaConfig(apiKey: 'prod_xxxx'));

With overrides

await Digia.initialize(DigiaConfig(
  apiKey: 'dev_xxxx',
  environment: DigiaEnvironment.sandbox,
  baseUrl: 'https://dev.digia.tech',
  fontFamily: 'Inter',
));

Constructors

DigiaConfig({required String apiKey, DigiaLogLevel logLevel = DigiaLogLevel.error, DigiaEnvironment environment = DigiaEnvironment.production, String? baseUrl, String? fontFamily, EngageActionInterceptor? onAction, DigiaAnalyticsConfig analyticsConfig = const DigiaAnalyticsConfig()})

Properties

analyticsConfig DigiaAnalyticsConfig
Analytics collection and dispatch configuration. Defaults to DigiaAnalyticsConfig with standard production settings.
final
apiKey String
Environment-specific API key from the Digia dashboard.
final
baseUrl String?
Optional override for the engage API host (e.g. https://app.digia.tech). When null, the host is derived from environment. Mirrors Android's DigiaConfig.baseUrl.
final
environment DigiaEnvironment
Target environment. Defaults to DigiaEnvironment.production.
final
fontFamily String?
Optional global font family applied to all Digia-rendered text (e.g. nudge titles, bodies, and button labels). Resolved as a Flutter font family registered in the host app's pubspec.yaml. Mirrors Android's DigiaConfig.fontFamily.
final
hashCode int
The hash code for this object.
no setterinherited
logLevel DigiaLogLevel
Log verbosity. Defaults to DigiaLogLevel.error.
final
onAction EngageActionInterceptor?
Optional host override for engage navigation actions — open URL / deep link (LinkAction, with their target). Inspect it + the EngageActionContext and return true to handle the link yourself (the SDK then skips opening it); return false/null to let the default run. Hide/share are always handled by the SDK and never reach this hook. Mirrors React Native's onAction.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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