SmartDevicesManager.off(event: "change", handler: (event: { type: string; [key: string]: any }) => void)

Requires:
@ray-js/panel-sdk≥1.16.0

Description

Unsubscribe from multi-device manager change events. Pass the same event name and callback reference used with on.

Parameters

ParameterTypeRequiredDescription
event"change"YesEvent name, fixed to change
handler(event: { type: string; [key: string]: any }) => voidYesEvent callback

Return Value

Type: any
The current Manager instance; supports chaining

Examples

Unsubscribe from device change events

const handleChange = event => {
  console.log(event.type);
};

manager.on('change', handleChange);
manager.off('change', handleChange);