SmartDeviceModel.onInitialized(listener: Function)
Requires:
@ray-js/panel-sdk≥1.0.0
Description
Register a callback for the smart device model initialization-completed event
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
listener | (instance: SmartDeviceModel) => void | Yes | Callback invoked after initialization, receiving the current device instance as an argument |
Return Value
Type: number
Listener ID used to cancel the listener via offInitialized