RecordingForgePlatform class
Recording ForgePlatform fake: accepts every facade call, remembers the metadata passed to createVideo, and returns platformVideo for every created video view.
- Implemented types
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 setteroverride
-
connectionTypes
→ List<
String?> -
Every connection class reported through setAutoConnectionType, in
order, including the
nullthat clears it.final -
createVideoMetadata
↔ Map<
String, Object?> ? -
Metadata map of the most recent createVideo call.
getter/setter pair
-
createVideoOptions
↔ Map<
String, Object?> ? -
Options map of the most recent createVideo call.
getter/setter pair
-
events
→ Stream<
Map< String, Object?> > -
Push streams of drained diagnostic payloads. Implementations own the
mechanism (FFI drain timer, Web listener bridge).
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
logs
→ Stream<
Map< String, Object?> > -
no setteroverride
- nativeVersion → String?
-
no setteroverride
- platformVideo → RecordingForgePlatformVideo
-
The video fake returned by every createVideo call.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applicationForeground(
bool foreground) → Future< ForgeOutcome> -
override
-
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).
override
-
createVideo(
Map< String, Object?> ? options, Map<String, Object?> ? metadata) → Future<ForgePlatformVideo> -
override
-
destroy(
) → Future< void> -
override
-
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.override -
initialize(
ForgeConfig config) → Future< void> -
Creates the underlying runtime. Throws ForgeInitException on invalid
configuration.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reportNetworkEvent(
Map< String, Object?> observation) → Future<ForgeOutcome> -
override
-
setAutoConnectionType(
String? connectionType) → Future< ForgeOutcome> -
Reports the connection class the device is on (
wifi,cellular,ethernet,other,unknown), ornullto clear it.override -
startSession(
) → Future< ForgeOutcome> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
trackSessionEvent(
String name, Map< String, Object?> ? params) → Future<ForgeOutcome> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited