@camera.ui/sdk / plugin / isService
Function: isService() ​
isService(
contract):boolean
Defined in: plugin/helper.ts:200
Reports whether the plugin only serves camera.ui itself (role Service), which means it never appears in a camera's plugin list.
Parameters ​
contract ​
Plugin contract to inspect.
Returns ​
boolean
true if the role is PluginRole.Service.
Example ​
ts
import { isService, PluginInterface } from '@camera.ui/sdk';
if (isService(contract)) skipCameraAssignment();