@camera.ui/sdk / plugin / canProvideSensorsToAnyCameras
Function: canProvideSensorsToAnyCameras() ​
canProvideSensorsToAnyCameras(
contract):boolean
Defined in: plugin/helper.ts:240
Reports whether the plugin is allowed to add sensors to cameras owned by other plugins (true for SensorProvider and CameraAndSensorProvider). Hub and pure CameraController plugins only see their own cameras.
Parameters ​
contract ​
Plugin contract to inspect.
Returns ​
boolean
true if the plugin may attach sensors to any camera.
Example ​
ts
import { canProvideSensorsToAnyCameras } from '@camera.ui/sdk';
if (canProvideSensorsToAnyCameras(contract)) listAllCameras();