initStandalone static method

Future<bool> initStandalone(
  1. String mobileKey, {
  2. required ObservabilityOptions observability,
  3. SessionReplayOptions? replay,
})

Boots observability (and optional session replay) standalone, without a LaunchDarkly client. Mirrors LDObserve.Init(string mobileKey, ...).

When replay is omitted, session replay is started disabled.

Completes like init: true once ready, false if startup fails or after shutdown, never with an error.

Implementation

static Future<bool> initStandalone(
  String mobileKey, {
  required ObservabilityOptions observability,
  SessionReplayOptions? replay,
}) {
  return LDObservePlugin(observability, replay: replay).boot(mobileKey);
}