DartBridgeState class

State bridge for C++ SDK state operations. Matches Swift's CppBridge+State.swift.

Non-auth SDK state (environment, API key, base URL, device ID, device registration flag) lives in rac_sdk_state. Auth state (tokens, user/org IDs, expiry, refresh-window math, persistence) lives in rac_auth_manager — auth accessors here delegate to rac_auth_* directly, matching the Swift bridge pattern introduced in F3.

Properties

accessToken String?
Get access token from the auth manager
no setter
apiKey String?
Get API key from C++ state
no setter
baseURL String?
Get base URL from C++ state
no setter
deviceId String?
Get device ID from C++ state
no setter
environment SDKEnvironment
Get current environment from C++ state
no setter
hashCode int
The hash code for this object.
no setterinherited
isAuthenticated bool
Check if authenticated (valid non-expired token)
no setter
isDeviceRegistered bool
Check if device is registered
no setter
isInitialized bool
Check if state is initialized
no setter
organizationId String?
Get organization ID from the auth manager
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenNeedsRefresh bool
Check if token needs refresh
no setter
userId String?
Get user ID from the auth manager
no setter

Methods

clearAuth() Future<void>
Clear authentication state (in-memory + persisted).
initialize({required SDKEnvironment environment, String? baseURL}) Future<void>
Install auth secure storage after the platform async cache is ready.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Reset state (for testing)
setDeviceRegistered(bool registered) → void
Set device registration status
shutdown({required bool requireNative}) bool
Shutdown state manager
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance DartBridgeState
final