DartBridgeState class

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

C++ owns runtime state; Dart handles persistence (secure storage).

Properties

accessToken String?
Get access token from C++ state
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 C++ state
no setter
refreshToken String?
Get refresh token from C++ state
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenExpiresAt DateTime?
Get token expiry timestamp
no setter
tokenNeedsRefresh bool
Check if token needs refresh
no setter
userId String?
Get user ID from C++ state
no setter

Methods

clearAuth() Future<void>
Clear authentication state
initialize({required SDKEnvironment environment, String? apiKey, String? baseURL, String? deviceId}) Future<void>
Initialize C++ state manager
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Reset state (for testing)
setAuth({required String accessToken, required String refreshToken, required DateTime expiresAt, String? userId, required String organizationId, required String deviceId}) Future<void>
Set authentication state after successful HTTP auth
setDeviceRegistered(bool registered) → void
Set device registration status
shutdown() → void
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