LifecycleApi class
Logical model-lifecycle service contract. Mirrors the C ABI entry points rac_model_lifecycle_load_proto, rac_model_lifecycle_unload_proto, rac_model_lifecycle_current_model_proto, and rac_component_lifecycle_snapshot_proto. Platform adapters remain responsible for native filesystem permissions, sandbox/bookmark/SAF handles, and OS-level process lifecycle; this service carries only the portable load/unload/current/snapshot contracts owned by C++.
Constructors
- LifecycleApi(RpcClient _client)
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
-
current(
ClientContext? ctx, CurrentModelRequest request) → Future< CurrentModelResult> - Query the currently loaded model for a component/framework. Mirrors rac_model_lifecycle_current_model_proto.
-
load(
ClientContext? ctx, ModelLoadRequest request) → Future< ModelLoadResult> - Load a registered model. Mirrors rac_model_lifecycle_load_proto.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
snapshot(
ClientContext? ctx, ComponentLifecycleSnapshotRequest request) → Future< ComponentLifecycleSnapshotResult> - Snapshot the lifecycle state of one or more SDKComponent values. Mirrors rac_component_lifecycle_snapshot_proto.
-
toString(
) → String -
A string representation of this object.
inherited
-
unload(
ClientContext? ctx, ModelUnloadRequest request) → Future< ModelUnloadResult> - Unload one or all models. Mirrors rac_model_lifecycle_unload_proto.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited