1/* 2 * Copyright (c) 2022-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"), 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @file 18 * @kit NotificationKit 19 */ 20 21import { AsyncCallback } from './@ohos.base'; 22import { BundleOption as _BundleOption } from './notification/NotificationCommonDef'; 23import { NotificationSubscribeInfo as _NotificationSubscribeInfo } from './notification/notificationSubscribeInfo'; 24import { NotificationSubscriber as _NotificationSubscriber } from './notification/notificationSubscriber'; 25import { SubscribeCallbackData as _SubscribeCallbackData } from './notification/notificationSubscriber'; 26import { EnabledNotificationCallbackData as _EnabledNotificationCallbackData } from './notification/notificationSubscriber'; 27import type { BadgeNumberCallbackData as _BadgeNumberCallbackData } from './notification/notificationSubscriber'; 28 29/** 30 * @namespace notificationSubscribe 31 * @syscap SystemCapability.Notification.Notification 32 * @systemapi 33 * @since 9 34 */ 35declare namespace notificationSubscribe { 36 /** 37 * Describes a NotificationKey, which can be used to identify a notification. 38 * 39 * @typedef NotificationKey 40 * @syscap SystemCapability.Notification.Notification 41 * @systemapi 42 * @since 9 43 */ 44 export interface NotificationKey { 45 /** 46 * Notify ID. 47 * 48 * @type { number } 49 * @syscap SystemCapability.Notification.Notification 50 * @systemapi 51 * @since 9 52 */ 53 id: number; 54 55 /** 56 * Notification label. 57 * 58 * @type { ?string } 59 * @syscap SystemCapability.Notification.Notification 60 * @systemapi 61 * @since 9 62 */ 63 label?: string; 64 } 65 66 /** 67 * Reason for remove a notification 68 * 69 * @enum { number } 70 * @syscap SystemCapability.Notification.Notification 71 * @systemapi 72 * @since 9 73 */ 74 export enum RemoveReason { 75 /** 76 * Notification clicked notification on the status bar 77 * 78 * @syscap SystemCapability.Notification.Notification 79 * @systemapi 80 * @since 9 81 */ 82 CLICK_REASON_REMOVE = 1, 83 84 /** 85 * User dismissal notification on the status bar 86 * 87 * @syscap SystemCapability.Notification.Notification 88 * @systemapi 89 * @since 9 90 */ 91 CANCEL_REASON_REMOVE = 2 92 } 93 94 /** 95 * Subscribe to notifications. 96 * 97 * @permission ohos.permission.NOTIFICATION_CONTROLLER 98 * @param { NotificationSubscriber } subscriber - The notification subscriber. 99 * @param { AsyncCallback<void> } callback - The callback of subscribe. 100 * @throws { BusinessError } 201 - Permission denied. 101 * @throws { BusinessError } 202 - Not system application to call the interface. 102 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 103 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 104 * @throws { BusinessError } 1600001 - Internal error. 105 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 106 * @throws { BusinessError } 1600003 - Failed to connect to the service. 107 * @throws { BusinessError } 1600012 - No memory space. 108 * @syscap SystemCapability.Notification.Notification 109 * @systemapi 110 * @since 9 111 */ 112 function subscribe(subscriber: NotificationSubscriber, callback: AsyncCallback<void>): void; 113 114 /** 115 * Subscribe self notifications. 116 * 117 * @param { NotificationSubscriber } subscriber - The notification subscriber. 118 * @returns { Promise<void> } The promise returned by the function. 119 * @throws { BusinessError } 202 - Not system application to call the interface. 120 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 121 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 122 * @throws { BusinessError } 1600001 - Internal error. 123 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 124 * @throws { BusinessError } 1600003 - Failed to connect to the service. 125 * @throws { BusinessError } 1600012 - No memory space. 126 * @syscap SystemCapability.Notification.Notification 127 * @systemapi 128 * @since 11 129 */ 130 function subscribeSelf(subscriber: NotificationSubscriber): Promise<void>; 131 132 /** 133 * Subscribe to notifications. 134 * 135 * @permission ohos.permission.NOTIFICATION_CONTROLLER 136 * @param { NotificationSubscriber } subscriber - The notification subscriber. 137 * @param { NotificationSubscribeInfo } info - The notification subscribe info. 138 * @param { AsyncCallback<void> } callback - The callback of subscribe. 139 * @throws { BusinessError } 201 - Permission denied. 140 * @throws { BusinessError } 202 - Not system application to call the interface. 141 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 142 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 143 * @throws { BusinessError } 1600001 - Internal error. 144 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 145 * @throws { BusinessError } 1600003 - Failed to connect to the service. 146 * @throws { BusinessError } 1600012 - No memory space. 147 * @syscap SystemCapability.Notification.Notification 148 * @systemapi 149 * @since 9 150 */ 151 function subscribe( 152 subscriber: NotificationSubscriber, 153 info: NotificationSubscribeInfo, 154 callback: AsyncCallback<void> 155 ): void; 156 157 /** 158 * Subscribe to notifications 159 * 160 * @permission ohos.permission.NOTIFICATION_CONTROLLER 161 * @param { NotificationSubscriber } subscriber - The notification subscriber. 162 * @param { NotificationSubscribeInfo } [info] - The notification subscribe info. 163 * @returns { Promise<void> } The promise returned by the function. 164 * @throws { BusinessError } 201 - Permission denied. 165 * @throws { BusinessError } 202 - Not system application to call the interface. 166 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 167 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 168 * @throws { BusinessError } 1600001 - Internal error. 169 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 170 * @throws { BusinessError } 1600003 - Failed to connect to the service. 171 * @throws { BusinessError } 1600012 - No memory space. 172 * @syscap SystemCapability.Notification.Notification 173 * @systemapi 174 * @since 9 175 */ 176 function subscribe(subscriber: NotificationSubscriber, info?: NotificationSubscribeInfo): Promise<void>; 177 178 /** 179 * Unsubscribe notifications. 180 * 181 * @permission ohos.permission.NOTIFICATION_CONTROLLER 182 * @param { NotificationSubscriber } subscriber - The notification subscriber. 183 * @param { AsyncCallback<void> } callback - The callback of unsubscribe. 184 * @throws { BusinessError } 201 - Permission denied. 185 * @throws { BusinessError } 202 - Not system application to call the interface. 186 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 187 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 188 * @throws { BusinessError } 1600001 - Internal error. 189 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 190 * @throws { BusinessError } 1600003 - Failed to connect to the service. 191 * @syscap SystemCapability.Notification.Notification 192 * @systemapi 193 * @since 9 194 */ 195 function unsubscribe(subscriber: NotificationSubscriber, callback: AsyncCallback<void>): void; 196 197 /** 198 * Unsubscribe notifications. 199 * 200 * @permission ohos.permission.NOTIFICATION_CONTROLLER 201 * @param { NotificationSubscriber } subscriber - The notification subscriber. 202 * @returns { Promise<void> } The promise returned by the function. 203 * @throws { BusinessError } 201 - Permission denied. 204 * @throws { BusinessError } 202 - Not system application to call the interface. 205 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 206 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 207 * @throws { BusinessError } 1600001 - Internal error. 208 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 209 * @throws { BusinessError } 1600003 - Failed to connect to the service. 210 * @syscap SystemCapability.Notification.Notification 211 * @systemapi 212 * @since 9 213 */ 214 function unsubscribe(subscriber: NotificationSubscriber): Promise<void>; 215 216 /** 217 * Remove notification based on BundleOption and NotificationKey. 218 * 219 * @permission ohos.permission.NOTIFICATION_CONTROLLER 220 * @param { BundleOption } bundle - The bundle option. 221 * @param { NotificationKey } notificationKey - The notification key. 222 * @param { RemoveReason } reason - The remove reason. 223 * @param { AsyncCallback<void> } callback - The callback of remove. 224 * @throws { BusinessError } 201 - Permission denied. 225 * @throws { BusinessError } 202 - Not system application to call the interface. 226 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 227 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 228 * @throws { BusinessError } 1600001 - Internal error. 229 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 230 * @throws { BusinessError } 1600003 - Failed to connect to the service. 231 * @throws { BusinessError } 1600007 - The notification does not exist. 232 * @throws { BusinessError } 17700001 - The specified bundle name was not found. 233 * @syscap SystemCapability.Notification.Notification 234 * @systemapi 235 * @since 9 236 */ 237 function remove( 238 bundle: BundleOption, 239 notificationKey: NotificationKey, 240 reason: RemoveReason, 241 callback: AsyncCallback<void> 242 ): void; 243 244 /** 245 * Remove notification based on BundleOption and NotificationKey. 246 * 247 * @permission ohos.permission.NOTIFICATION_CONTROLLER 248 * @param { BundleOption } bundle - The bundle option. 249 * @param { NotificationKey } notificationKey - The notification key. 250 * @param { RemoveReason } reason - The remove reason. 251 * @returns { Promise<void> } The promise returned by the function. 252 * @throws { BusinessError } 201 - Permission denied. 253 * @throws { BusinessError } 202 - Not system application to call the interface. 254 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 255 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 256 * @throws { BusinessError } 1600001 - Internal error. 257 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 258 * @throws { BusinessError } 1600003 - Failed to connect to the service. 259 * @throws { BusinessError } 1600007 - The notification does not exist. 260 * @throws { BusinessError } 17700001 - The specified bundle name was not found. 261 * @syscap SystemCapability.Notification.Notification 262 * @systemapi 263 * @since 9 264 */ 265 function remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveReason): Promise<void>; 266 267 /** 268 * Remove notification based on hashCode. 269 * 270 * @permission ohos.permission.NOTIFICATION_CONTROLLER 271 * @param { string } hashCode - The hashCode. 272 * @param { RemoveReason } reason - The remove reason. 273 * @param { AsyncCallback<void> } callback - The callback of remove. 274 * @throws { BusinessError } 201 - Permission denied. 275 * @throws { BusinessError } 202 - Not system application to call the interface. 276 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 277 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 278 * @throws { BusinessError } 1600001 - Internal error. 279 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 280 * @throws { BusinessError } 1600003 - Failed to connect to the service. 281 * @throws { BusinessError } 1600007 - The notification does not exist. 282 * @syscap SystemCapability.Notification.Notification 283 * @systemapi 284 * @since 9 285 */ 286 function remove(hashCode: string, reason: RemoveReason, callback: AsyncCallback<void>): void; 287 288 289 /** 290 * Remove notifications based on hashCodes. 291 * 292 * @permission ohos.permission.NOTIFICATION_CONTROLLER 293 * @param { Array<String> } hashCodes - The hashCode array. 294 * @param { RemoveReason } reason - The remove reason. 295 * @param { AsyncCallback<void> } callback - The callback of remove. 296 * @throws { BusinessError } 201 - Permission denied. 297 * @throws { BusinessError } 202 - Not system application to call the interface. 298 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 299 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 300 * @throws { BusinessError } 1600001 - Internal error. 301 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 302 * @throws { BusinessError } 1600003 - Failed to connect to the service. 303 * @syscap SystemCapability.Notification.Notification 304 * @systemapi 305 * @since 10 306 */ 307 function remove(hashCodes: Array<String>, reason: RemoveReason, callback: AsyncCallback<void>): void; 308 309 /** 310 * Remove notification based on hashCode. 311 * 312 * @permission ohos.permission.NOTIFICATION_CONTROLLER 313 * @param { string } hashCode - The hashCode. 314 * @param { RemoveReason } reason - The remove reason. 315 * @returns { Promise<void> } The promise returned by the function. 316 * @throws { BusinessError } 201 - Permission denied. 317 * @throws { BusinessError } 202 - Not system application to call the interface. 318 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 319 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 320 * @throws { BusinessError } 1600001 - Internal error. 321 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 322 * @throws { BusinessError } 1600003 - Failed to connect to the service. 323 * @throws { BusinessError } 1600007 - The notification does not exist. 324 * @syscap SystemCapability.Notification.Notification 325 * @systemapi 326 * @since 9 327 */ 328 function remove(hashCode: string, reason: RemoveReason): Promise<void>; 329 330 /** 331 * Remove notifications based on hashCodes. 332 * 333 * @permission ohos.permission.NOTIFICATION_CONTROLLER 334 * @param { Array<String> } hashCodes - The hashCode array. 335 * @param { RemoveReason } reason - The remove reason. 336 * @returns { Promise<void> } The promise returned by the function. 337 * @throws { BusinessError } 201 - Permission denied. 338 * @throws { BusinessError } 202 - Not system application to call the interface. 339 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 340 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 341 * @throws { BusinessError } 1600001 - Internal error. 342 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 343 * @throws { BusinessError } 1600003 - Failed to connect to the service. 344 * @syscap SystemCapability.Notification.Notification 345 * @systemapi 346 * @since 10 347 */ 348 function remove(hashCodes: Array<String>, reason: RemoveReason): Promise<void>; 349 350 /** 351 * RemoveAll all notifications based on BundleOption. 352 * 353 * @permission ohos.permission.NOTIFICATION_CONTROLLER 354 * @param { BundleOption } bundle - The bundle option. 355 * @param { AsyncCallback<void> } callback - The callback of removeAll. 356 * @throws { BusinessError } 201 - Permission denied. 357 * @throws { BusinessError } 202 - Not system application to call the interface. 358 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 359 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 360 * @throws { BusinessError } 1600001 - Internal error. 361 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 362 * @throws { BusinessError } 1600003 - Failed to connect to the service. 363 * @throws { BusinessError } 17700001 - The specified bundle name was not found. 364 * @syscap SystemCapability.Notification.Notification 365 * @systemapi 366 * @since 9 367 */ 368 function removeAll(bundle: BundleOption, callback: AsyncCallback<void>): void; 369 370 /** 371 * RemoveAll all notifications. 372 * 373 * @permission ohos.permission.NOTIFICATION_CONTROLLER 374 * @param { AsyncCallback<void> } callback - The callback of removeAll. 375 * @throws { BusinessError } 201 - Permission denied. 376 * @throws { BusinessError } 202 - Not system application to call the interface. 377 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 378 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 379 * @throws { BusinessError } 1600001 - Internal error. 380 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 381 * @throws { BusinessError } 1600003 - Failed to connect to the service. 382 * @syscap SystemCapability.Notification.Notification 383 * @systemapi 384 * @since 9 385 */ 386 function removeAll(callback: AsyncCallback<void>): void; 387 388 /** 389 * Remove all notifications under the specified user. 390 * 391 * @permission ohos.permission.NOTIFICATION_CONTROLLER 392 * @param { number } userId - The userId. 393 * @param { AsyncCallback<void> } callback - The callback of removeAll. 394 * @throws { BusinessError } 201 - Permission denied. 395 * @throws { BusinessError } 202 - Not system application to call the interface. 396 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 397 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 398 * @throws { BusinessError } 1600001 - Internal error. 399 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 400 * @throws { BusinessError } 1600003 - Failed to connect to the service. 401 * @throws { BusinessError } 1600008 - The user does not exist. 402 * @syscap SystemCapability.Notification.Notification 403 * @systemapi 404 * @since 9 405 */ 406 function removeAll(userId: number, callback: AsyncCallback<void>): void; 407 408 /** 409 * Remove all notifications under the specified user. 410 * 411 * @permission ohos.permission.NOTIFICATION_CONTROLLER 412 * @param { number } userId - The userId. 413 * @returns { Promise<void> } The promise returned by the function. 414 * @throws { BusinessError } 201 - Permission denied. 415 * @throws { BusinessError } 202 - Not system application to call the interface. 416 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 417 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 418 * @throws { BusinessError } 1600001 - Internal error. 419 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 420 * @throws { BusinessError } 1600003 - Failed to connect to the service. 421 * @throws { BusinessError } 1600008 - The user does not exist. 422 * @syscap SystemCapability.Notification.Notification 423 * @systemapi 424 * @since 9 425 */ 426 function removeAll(userId: number): Promise<void>; 427 428 /** 429 * RemoveAll all notifications. 430 * 431 * @permission ohos.permission.NOTIFICATION_CONTROLLER 432 * @param { BundleOption } [bundle] - The bundle option. 433 * @returns { Promise<void> } The promise returned by the function. 434 * @throws { BusinessError } 201 - Permission denied. 435 * @throws { BusinessError } 202 - Not system application to call the interface. 436 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 437 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 438 * @throws { BusinessError } 1600001 - Internal error. 439 * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. 440 * @throws { BusinessError } 1600003 - Failed to connect to the service. 441 * @throws { BusinessError } 17700001 - The specified bundle name was not found. 442 * @syscap SystemCapability.Notification.Notification 443 * @systemapi 444 * @since 9 445 */ 446 function removeAll(bundle?: BundleOption): Promise<void>; 447 448 /** 449 * Trigger notification cross-device operation. 450 * 451 * @permission ohos.permission.NOTIFICATION_CONTROLLER 452 * @param { string } [hashcode] - The notification identifier. 453 * @param { OperationInfo } [operationInfo] - The interactive information. 454 * @returns { Promise<void> } The promise returned by the function. 455 * @throws { BusinessError } 201 - Permission denied. 456 * @throws { BusinessError } 202 - Not system application to call the interface. 457 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 458 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 459 * @throws { BusinessError } 1600010 - Distributed operation failed. 460 * @syscap SystemCapability.Notification.Notification 461 * @systemapi 462 * @since 18 463 */ 464 function distributeOperation(hashcode: string, operationInfo?: OperationInfo): Promise<void>; 465 466 /** 467 * Information on cross-device notification interactions 468 * 469 * @typedef OperationInfo 470 * @syscap SystemCapability.Notification.Notification 471 * @systemapi 472 * @since 18 473 */ 474 export interface OperationInfo { 475 /** 476 * action button name 477 * 478 * @type { ?string } 479 * @syscap SystemCapability.Notification.Notification 480 * @systemapi 481 * @since 18 482 */ 483 actionName?: string; 484 485 /** 486 * user input. 487 * 488 * @type { ?string } 489 * @syscap SystemCapability.Notification.Notification 490 * @systemapi 491 * @since 18 492 */ 493 userInput?: string; 494 } 495 496 /** 497 * Describes a bundleOption in a notification. 498 * 499 * @typedef { _BundleOption } BundleOption 500 * @syscap SystemCapability.Notification.Notification 501 * @systemapi 502 * @since 9 503 */ 504 export type BundleOption = _BundleOption; 505 506 /** 507 * Sets filter criteria of publishers for subscribing to desired notifications. 508 * 509 * @typedef { _NotificationSubscribeInfo } NotificationSubscribeInfo 510 * @syscap SystemCapability.Notification.Notification 511 * @systemapi 512 * @since 9 513 */ 514 export type NotificationSubscribeInfo = _NotificationSubscribeInfo; 515 516 /** 517 * Provides methods that will be called back when the subscriber receives a new notification or 518 * a notification is canceled. 519 * 520 * @typedef { _NotificationSubscriber } NotificationSubscriber 521 * @syscap SystemCapability.Notification.Notification 522 * @systemapi 523 * @since 9 524 */ 525 export type NotificationSubscriber = _NotificationSubscriber; 526 527 /** 528 * Provides methods that will be called back when the subscriber receives a new notification or 529 * a notification is canceled. 530 * 531 * @typedef { _SubscribeCallbackData } SubscribeCallbackData 532 * @syscap SystemCapability.Notification.Notification 533 * @systemapi 534 * @since 9 535 */ 536 export type SubscribeCallbackData = _SubscribeCallbackData; 537 538 /** 539 * Describes the properties of the application that the permission to send notifications has changed. 540 * 541 * @typedef { _EnabledNotificationCallbackData } EnabledNotificationCallbackData 542 * @syscap SystemCapability.Notification.Notification 543 * @systemapi 544 * @since 9 545 */ 546 export type EnabledNotificationCallbackData = _EnabledNotificationCallbackData; 547 548 /** 549 * Describes the badge number of the application has changed. 550 * 551 * @typedef { _BadgeNumberCallbackData } BadgeNumberCallbackData 552 * @syscap SystemCapability.Notification.Notification 553 * @systemapi 554 * @since 11 555 */ 556 export type BadgeNumberCallbackData = _BadgeNumberCallbackData; 557} 558 559export default notificationSubscribe; 560