From 94fa752eb3cb5fe21d413cde92cb3cb41ee326be Mon Sep 17 00:00:00 2001 From: wu-chengwen Date: Wed, 3 Aug 2022 10:12:22 +0800 Subject: [PATCH] fix(usb):add usb state change and usb port change event Signed-off-by: wu-chengwen --- runtime/main/extend/systemplugin/napi/ohos_commonEvent.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/main/extend/systemplugin/napi/ohos_commonEvent.js b/runtime/main/extend/systemplugin/napi/ohos_commonEvent.js index 9e7abd7c..bd4b1a6d 100644 --- a/runtime/main/extend/systemplugin/napi/ohos_commonEvent.js +++ b/runtime/main/extend/systemplugin/napi/ohos_commonEvent.js @@ -179,6 +179,8 @@ export const Support = { COMMON_EVENT_IVI_VOLTAGE_RECOVERY: "common.event.IVI_VOLTAGE_RECOVERY", COMMON_EVENT_IVI_TEMPERATURE_RECOVERY: "common.event.IVI_TEMPERATURE_RECOVERY", COMMON_EVENT_IVI_ACTIVE: "common.event.IVI_ACTIVE", + COMMON_EVENT_USB_STATE: "usual.event.hardware.usb.action.USB_STATE", + COMMON_EVENT_USB_PORT_CHANGED: "usual.event.hardware.usb.action.USB_PORT_CHANGED", COMMON_EVENT_USB_DEVICE_ATTACHED: "usual.event.hardware.usb.action.USB_DEVICE_ATTACHED", COMMON_EVENT_USB_DEVICE_DETACHED: