Skip to content

@camera.ui/sdk / camera / PluginAssignments

Type Alias: PluginAssignments

PluginAssignments = Partial<Record<SingleProviderAssignmentKey, AssignedPlugin>> & Partial<Record<MultiProviderAssignmentKey, AssignedPlugin[]>> & object

Defined in: camera/config.ts:120

Plugin assignments for a camera, keyed by the assignment keys the SDK sensor registry declares. Single-provider sensors and the camera controller hold one plugin; multi-provider sensors and the hub hold an array. Derived from the registry so a new sensor type gains its assignment slot automatically.

Type Declaration

cameraController?

optional cameraController?: AssignedPlugin

hub?

optional hub?: AssignedPlugin[]