RemoteCanvas
Explicit client-installed Canvas renderer schemas and server-only references to their typed properties. Native source acquisition and GPU work follow the client's existing Canvas attachment and presenter contracts.
Functions
Link copied to clipboard
fun <P : Any> register(registry: RemoteRegistry, type: ProjectionType, decode: (ProjectionValue) -> P, create: (P) -> CanvasSource)
Registers a trusted client source factory before negotiation. Decoding and source description creation must acquire no attachment resources; Canvas opens and closes each source binding.
Link copied to clipboard
fun <P : Any> source(type: ProjectionType, properties: P, encode: (P) -> ProjectionValue): CanvasSource
Describes a server Canvas rendered by an already installed client extension. The immutable property value and encoder remain server-owned; only encoded properties and the destination size transfer. Rendering this source in a local host is unsupported and fails explicitly.