ty.panel.initPanelKit
Initialize basic panel capabilities
- Initializes the basic capabilities of device panels. For example, register listeners of device or device group events. Without special requirements, you do not need to call the methods
ty.device.registerDeviceListListenerorty.device.registerGroupChangein the business logic. For example, these methods are not needed if you do not require listeners for changes in data point (DP) status and details of other devices. - Creates listeners for devices of going online or offline. If a device goes offline, a dialog box appears to show this event. Without special business requirements, you do not need to additionally develop the respective dialog box and business logic.
Type
Info
Either deviceId or groupId` must be provided.
Request parameters
Return parameters
None.
Sample request
Sample response
None.
Things to note
If you do not require custom multilingual settings for devices of getting offline, the following JSON settings are recommended. Specifically, you can go to Tuya Developer Platform > App > Multi-language or App Language, and configure desired multilingual settings.