diff --git a/api/@ohos.notificationManager.d.ts b/api/@ohos.notificationManager.d.ts index 69ab2bbeb64e6cea3e26677ee86cb8fcfd87b0a7..3eb816a0b2e1643cb4edea0fe8bacfe2a1877c12 100644 --- a/api/@ohos.notificationManager.d.ts +++ b/api/@ohos.notificationManager.d.ts @@ -423,7 +423,8 @@ declare namespace notificationManager { * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function publishAsBundle( request: NotificationRequest, @@ -458,7 +459,8 @@ declare namespace notificationManager { * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function publishAsBundle(request: NotificationRequest, representativeBundle: string, userId: number): Promise; @@ -487,7 +489,8 @@ declare namespace notificationManager { * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function publishAsBundle(representativeBundle: BundleOption, request: NotificationRequest): Promise; @@ -601,7 +604,8 @@ declare namespace notificationManager { * @throws { BusinessError } 17700001 - The specified bundle name was not found. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function cancelAsBundle( id: number, @@ -630,7 +634,8 @@ declare namespace notificationManager { * @throws { BusinessError } 17700001 - The specified bundle name was not found. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function cancelAsBundle(id: number, representativeBundle: string, userId: number): Promise; @@ -654,7 +659,8 @@ declare namespace notificationManager { * @throws { BusinessError } 17700001 - The specified bundle name was not found. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function cancelAsBundle(representativeBundle: BundleOption, id: number): Promise; @@ -1768,7 +1774,8 @@ declare namespace notificationManager { * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. * @throws { BusinessError } 1600003 - Failed to connect to the service. * @syscap SystemCapability.Notification.Notification - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function cancelGroup(groupName: string, callback: AsyncCallback): void; @@ -1783,7 +1790,8 @@ declare namespace notificationManager { * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. * @throws { BusinessError } 1600003 - Failed to connect to the service. * @syscap SystemCapability.Notification.Notification - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function cancelGroup(groupName: string): Promise; @@ -1864,7 +1872,8 @@ declare namespace notificationManager { * @throws { BusinessError } 1600012 - No memory space. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function setDoNotDisturbDate(date: DoNotDisturbDate, callback: AsyncCallback): void; @@ -1903,7 +1912,8 @@ declare namespace notificationManager { * @throws { BusinessError } 1600012 - No memory space. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function setDoNotDisturbDate(date: DoNotDisturbDate): Promise; @@ -1946,7 +1956,8 @@ declare namespace notificationManager { * @throws { BusinessError } 1600012 - No memory space. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function setDoNotDisturbDate(date: DoNotDisturbDate, userId: number, callback: AsyncCallback): void; @@ -1989,7 +2000,8 @@ declare namespace notificationManager { * @throws { BusinessError } 1600012 - No memory space. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function setDoNotDisturbDate(date: DoNotDisturbDate, userId: number): Promise; @@ -2026,7 +2038,8 @@ declare namespace notificationManager { * @throws { BusinessError } 1600012 - No memory space. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function getDoNotDisturbDate(callback: AsyncCallback): void; @@ -2059,7 +2072,8 @@ declare namespace notificationManager { * @throws { BusinessError } 1600012 - No memory space. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function getDoNotDisturbDate(): Promise; @@ -2100,7 +2114,8 @@ declare namespace notificationManager { * @throws { BusinessError } 1600012 - No memory space. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function getDoNotDisturbDate(userId: number, callback: AsyncCallback): void; @@ -2141,7 +2156,8 @@ declare namespace notificationManager { * @throws { BusinessError } 1600012 - No memory space. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function getDoNotDisturbDate(userId: number): Promise; @@ -2160,7 +2176,8 @@ declare namespace notificationManager { * @throws { BusinessError } 1600003 - Failed to connect to the service. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function isSupportDoNotDisturbMode(callback: AsyncCallback): void; @@ -2176,7 +2193,8 @@ declare namespace notificationManager { * @throws { BusinessError } 1600003 - Failed to connect to the service. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function isSupportDoNotDisturbMode(): Promise; @@ -3905,7 +3923,8 @@ declare namespace notificationManager { * @throws { BusinessError } 1600019 - The do-not-disturb profile does not exist. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function getDoNotDisturbProfile(id: number): Promise;