element

fun <P : Any> element(type: ProjectionType, decode: (ProjectionValue) -> P, prepare: (P, RemotePreparationContext) -> Unit = { _, _ -> }, phase: RemotePreparationPhase = RemotePreparationPhase.Owners, create: (P, RemoteElementContext) -> Element)(source)

Registers one typed component decoder and factory before capability negotiation.