DartBridgeSdkInit class

Two-phase SDK init bridge.

The static methods below are 1:1 mirrors of the symbols declared in sdk/runanywhere-commons/include/rac/lifecycle/rac_sdk_init.h:

  • phase1rac_sdk_init_phase1_proto
  • phase2rac_sdk_init_phase2_proto
  • retryHTTPrac_sdk_retry_http_proto

Each method throws a StateError when the C ABI signals a hard failure (validation / parse / state init). Soft failures (offline mode, missing auth config) come back with success=true plus warning + flag fields; callers inspect the returned SdkInitResult to decide which UI affordances to enable.

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Methods

phase1(SdkInitPhase1Request request) SdkInitResult
Drive Phase 1 (synchronous core init) through the canonical C ABI.
phase2(SdkInitPhase2Request request) SdkInitResult
Drive Phase 2 (services init step list) through the canonical C ABI.
retryHTTP() SdkInitResult
Re-attempt HTTP/auth setup after an offline initialization. Mirrors rac_sdk_retry_http_proto semantics: idempotent fast path when already authenticated, surfaces a warning when no usable external config is available.