ForgePlatform class abstract
Internal seam between the public facade and per-platform runtimes. It traffics in plain Dart maps shaped like the forge_core camelCase JSON contract; the public facade owns the typed models.
- Implementers
Constructors
Properties
-
capturePlans
→ Stream<
Map< String, Object?> > -
Push stream of kernel capture-plan changes as canonical camelCase plan
maps. On Flutter Web the plan is consumed inside @npaw/forge-web itself,
so the web stream stays silent.
no setter
-
events
→ Stream<
Map< String, Object?> > -
Push streams of drained diagnostic payloads. Implementations own the
mechanism (FFI drain timer, Web listener bridge).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
logs
→ Stream<
Map< String, Object?> > -
no setter
- nativeVersion → String?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applicationForeground(
bool foreground) → Future< ForgeOutcome> -
capturePlan(
) → Future< Map< String, Object?> ?> - Pull accessor for the latest kernel-emitted capture plan, or null before the first plan emission (plans emit from the first session start onward).
-
createVideo(
Map< String, Object?> ? options, Map<String, Object?> ? metadata) → Future<ForgePlatformVideo> -
destroy(
) → Future< void> -
identityEvent(
String kind, Map< String, String> fields) → Future<ForgeOutcome> -
Reports one typed identity transition.
kindis the camelCase kernel identity kind (loginSuccess|loginFailed|logout|profileCreated| profileSelected|profileDeleted);fieldscarries the recognized userId/profileId/profileType/method/errorCode/reason/userType entries plus extra session-event params, all stringified by the facade. -
initialize(
ForgeConfig config) → Future< void> - Creates the underlying runtime. Throws ForgeInitException on invalid configuration.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reportNetworkEvent(
Map< String, Object?> observation) → Future<ForgeOutcome> -
setAutoConnectionType(
String? connectionType) → Future< ForgeOutcome> -
Reports the connection class the device is on (
wifi,cellular,ethernet,other,unknown), ornullto clear it. -
startSession(
) → Future< ForgeOutcome> -
toString(
) → String -
A string representation of this object.
inherited
-
trackSessionEvent(
String name, Map< String, Object?> ? params) → Future<ForgeOutcome>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited