From 92d04db9130a8641f35403e4890d3b96d6e776c9 Mon Sep 17 00:00:00 2001 From: "@xie-chang666" Date: Wed, 9 Feb 2022 15:29:35 +0800 Subject: [PATCH 1/2] Add the corresponding notification message for the volume status change Signed-off-by: @xie-chang666 Change-Id: I822d88cc206abb10caec6882578e05bc1cabb739 --- api/@ohos.commonEvent.d.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/api/@ohos.commonEvent.d.ts b/api/@ohos.commonEvent.d.ts index 36840ef8cd..dec87f6e17 100644 --- a/api/@ohos.commonEvent.d.ts +++ b/api/@ohos.commonEvent.d.ts @@ -859,6 +859,36 @@ declare namespace commonEvent { */ COMMON_EVENT_DISK_EJECT = "usual.event.data.DISK_EJECT", + /** + * The external storage was removed. + * This is a protected common event that can only be sent by system. + */ + COMMON_EVENT_VOLUME_REMOVED = "usual.event.data.VOLUME_REMOVED", + + /** + * The external storage was unmounted. + * This is a protected common event that can only be sent by system. + */ + COMMON_EVENT_VOLUME_UNMOUNTED = "usual.event.data.VOLUME_UNMOUNTED", + + /** + * The external storage was mounted. + * This is a protected common event that can only be sent by system. + */ + COMMON_EVENT_VOLUME_MOUNTED = "usual.event.data.VOLUME_MOUNTED", + + /** + * The external storage was bad removal. + * This is a protected common event that can only be sent by system. + */ + COMMON_EVENT_VOLUME_BAD_REMOVAL = "usual.event.data.VOLUME_BAD_REMOVAL", + + /** + * The external storage was eject. + * This is a protected common event that can only be sent by system. + */ + COMMON_EVENT_VOLUME_EJECT = "usual.event.data.VOLUME_EJECT", + /** * The visible of account was updated. * This is a protected common event that can only be sent by system. -- Gitee From 68238049535d21313359270e48c9ff7beeecf182 Mon Sep 17 00:00:00 2001 From: "@xie-chang666" Date: Wed, 9 Feb 2022 19:38:34 +0800 Subject: [PATCH 2/2] add since 8 Signed-off-by: @xie-chang666 Change-Id: I39be93d3bad66c269bfb6ec9fd70d4fdc3e80992 --- api/@ohos.commonEvent.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/@ohos.commonEvent.d.ts b/api/@ohos.commonEvent.d.ts index dec87f6e17..d95a29e378 100644 --- a/api/@ohos.commonEvent.d.ts +++ b/api/@ohos.commonEvent.d.ts @@ -862,30 +862,35 @@ declare namespace commonEvent { /** * The external storage was removed. * This is a protected common event that can only be sent by system. + * @since 8 */ COMMON_EVENT_VOLUME_REMOVED = "usual.event.data.VOLUME_REMOVED", /** * The external storage was unmounted. * This is a protected common event that can only be sent by system. + * @since 8 */ COMMON_EVENT_VOLUME_UNMOUNTED = "usual.event.data.VOLUME_UNMOUNTED", /** * The external storage was mounted. * This is a protected common event that can only be sent by system. + * @since 8 */ COMMON_EVENT_VOLUME_MOUNTED = "usual.event.data.VOLUME_MOUNTED", /** * The external storage was bad removal. * This is a protected common event that can only be sent by system. + * @since 8 */ COMMON_EVENT_VOLUME_BAD_REMOVAL = "usual.event.data.VOLUME_BAD_REMOVAL", /** * The external storage was eject. * This is a protected common event that can only be sent by system. + * @since 8 */ COMMON_EVENT_VOLUME_EJECT = "usual.event.data.VOLUME_EJECT", -- Gitee