RunAnywhereDiffusion class

Diffusion (image generation) capability surface.

NOTE: This namespace is NOT part of the Swift-as-reference cross-SDK v2 public contract yet — the RunAnywhere.diffusion getter and the public barrel export were removed under swift-parity-002-followup-flutter so Flutter does not advertise a surface that other SDKs do not implement. The class is retained for the day the cross-SDK v2 contract for image generation lands (proto-backed lifecycle stream/cancel/capabilities ABIs across Swift/Kotlin/RN/Web); callers that absolutely need it today must import this file directly and treat it as experimental/internal.

Load/current/unload state is owned by commons lifecycle; one-shot generation uses the lifecycle-owned generated-proto commons ABI.

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

cancel() Future<void>
Cancel any in-flight generation.
capabilities() DiffusionCapabilities
Backend capability discovery.
generate(String prompt, [DiffusionGenerationOptions? options]) Future<DiffusionResult>
Generate an image from a text prompt.
generateStream(String prompt, [DiffusionGenerationOptions? options]) Stream<DiffusionProgress>
Stream generation progress.
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

shared RunAnywhereDiffusion
no setter