RunAnywhereDiffusion class
Diffusion (image generation) capability surface. Access via
RunAnywhere.diffusion.
Load/current/unload state is owned by commons lifecycle; one-shot generation uses the lifecycle-owned generated-proto commons ABI. Only Apple platforms (iOS/macOS, CoreML) ship a diffusion backend — see the class header.
Properties
- currentModelId → String?
-
Currently-loaded diffusion model id, or null.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoaded → bool
-
True when commons lifecycle has a ready diffusion model.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelImageGeneration(
) → Future< void> - Cancel the current (streaming) image generation.
-
generateImage(
DiffusionGenerationOptions options) → Future< DiffusionResult> - Generate an image from the lifecycle-loaded diffusion model.
-
generateImageStream(
DiffusionGenerationOptions options) → Stream< DiffusionStreamEvent> - Stream typed diffusion events for an image generation.
-
load(
String modelId, [DiffusionConfiguration? config]) → Future< void> - Load a diffusion model by registry ID through commons lifecycle routing.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unload(
) → Future< void> - Unload the currently-loaded diffusion model.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
no setter