VapResourceDelegate class

Supplies VAPX resources for a player.

Must be registered before playback starts. When the animation declares mix resources, the platform implementation calls these callbacks and blocks the (native) render pipeline until they complete, so keep them fast; native code applies a timeout after which the slot stays empty.

Annotations

Constructors

VapResourceDelegate({Future<String?> resolveText(VapResource resource)?, Future<Uint8List?> resolveImage(VapResource resource)?})
Creates a delegate.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
resolveImage Future<Uint8List?> Function(VapResource resource)?
Returns encoded image bytes (PNG/JPEG) for a VapResourceType.image resource, or null to leave the slot empty. Bytes are decoded natively.
final
resolveText Future<String?> Function(VapResource resource)?
Returns the text to render for a VapResourceType.text resource, or null to leave the slot empty.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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