SmartDevicesManager.destroy()

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

Description

Destroy the multi-device manager: unregister all global event listeners, remove all change subscriptions, and destroy/clean up all device instances and internal mappings.

Parameters

None

Return Value

Type: void
void

Examples

Destroy the device manager

// Call when the page unmounts or when clearing devices
manager.destroy();