register
fun <P : Any> register(registry: RemoteRegistry, type: ProjectionType, decode: (ProjectionValue) -> P, create: (P) -> CanvasSource)(source)
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.