RuntimeCapabilities class

The set of behaviours this runtime can actually perform, and the objects that perform them.

declared is the published capability set — what a host embedding this runtime can read to know what its documents will get. It is derived from what was wired, so it cannot drift from the truth by being edited.

Constructors

RuntimeCapabilities({SoundPort? sound, MediaPort? media, SurfaceBuilder? webViewBuilder, SurfaceBuilder? pdfBuilder, SurfaceBuilder? mapBuilder, SurfaceBuilder? lottieBuilder, PaymentPort? payment, LocationPort? location, bool mediaSupportsVideo = false})
const

Properties

declared → Set<RuntimeCapability>
no setter
hashCode → int
The hash code for this object.
no setterinherited
location → LocationPort?
Answers where this device is. Absent means the runtime does not claim the Profile, and location fails visibly.
final
lottieBuilder → SurfaceBuilder?
final
mapBuilder → SurfaceBuilder?
final
media → MediaPort?
final
mediaSupportsVideo → bool
Whether media decodes video as well as audio. Separate because the common embedded case is audio-only, and a video widget must be able to tell that apart from "no media at all".
final
payment → PaymentPort?
Takes payment. A tier that wires none still renders documents; every payment action reports PAYMENT_UNAVAILABLE through onError.
final
pdfBuilder → SurfaceBuilder?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sound → SoundPort?
final
webViewBuilder → SurfaceBuilder?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
supports(RuntimeCapability capability) → bool
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

none → const RuntimeCapabilities
A runtime with no platform powers wired. Conformant: it declares nothing and every affected widget reports through onError.