1/* 2 * Copyright (c) 2022-2024 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 BasicServicesKit 19 */ 20 21import { AsyncCallback } from './@ohos.base'; 22import { CommonEventData as _CommonEventData } from './commonEvent/commonEventData'; 23import { CommonEventSubscriber as _CommonEventSubscriber } from './commonEvent/commonEventSubscriber'; 24import { CommonEventSubscribeInfo as _CommonEventSubscribeInfo } from './commonEvent/commonEventSubscribeInfo'; 25import { CommonEventPublishData as _CommonEventPublishData } from './commonEvent/commonEventPublishData'; 26 27/** 28 * Common event definition 29 * 30 * @namespace commonEventManager 31 * @syscap SystemCapability.Notification.CommonEvent 32 * @since 9 33 */ 34/** 35 * Common event definition 36 * 37 * @namespace commonEventManager 38 * @syscap SystemCapability.Notification.CommonEvent 39 * @crossplatform 40 * @atomicservice 41 * @since 11 42 */ 43declare namespace commonEventManager { 44 /** 45 * Publishes an ordered, sticky, or standard common event. 46 * 47 * @param { string } event - name of the common event. 48 * @param { AsyncCallback<void> } callback - The callback of publish. 49 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 50 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 51 * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 52 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 53 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 54 * @throws { BusinessError } 1500009 - Failed to obtain system parameters. 55 * @syscap SystemCapability.Notification.CommonEvent 56 * @since 9 57 */ 58 /** 59 * Publishes an ordered, sticky, or standard common event. 60 * 61 * @param { string } event - name of the common event. 62 * @param { AsyncCallback<void> } callback - The callback of publish. 63 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 64 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 65 * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 66 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 67 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 68 * @throws { BusinessError } 1500009 - Failed to obtain system parameters. 69 * @syscap SystemCapability.Notification.CommonEvent 70 * @atomicservice 71 * @since 11 72 */ 73 /** 74 * Publishes an ordered, sticky, or standard common event. 75 * 76 * @param { string } event - name of the common event. 77 * @param { AsyncCallback<void> } callback - The callback of publish. 78 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 79 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 80 * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 81 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 82 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 83 * @throws { BusinessError } 1500009 - Failed to obtain system parameters. 84 * @syscap SystemCapability.Notification.CommonEvent 85 * @crossplatform 86 * @atomicservice 87 * @since 12 88 */ 89 function publish(event: string, callback: AsyncCallback<void>): void; 90 91 /** 92 * Publishes an ordered, sticky, or standard common event. 93 * 94 * @param { string } event - name of the common event. 95 * @param { CommonEventPublishData } options - Indicate the CommonEventPublishData containing the common event 96 * content and attributes. 97 * @param { AsyncCallback<void> } callback - The callback of publish. 98 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 99 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 100 * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 101 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 102 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 103 * @throws { BusinessError } 1500009 - Failed to obtain system parameters. 104 * @syscap SystemCapability.Notification.CommonEvent 105 * @since 9 106 */ 107 /** 108 * Publishes an ordered, sticky, or standard common event. 109 * 110 * @param { string } event - name of the common event. 111 * @param { CommonEventPublishData } options - Indicate the CommonEventPublishData containing the common event 112 * content and attributes. 113 * @param { AsyncCallback<void> } callback - The callback of publish. 114 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 115 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 116 * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 117 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 118 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 119 * @throws { BusinessError } 1500009 - Failed to obtain system parameters. 120 * @syscap SystemCapability.Notification.CommonEvent 121 * @atomicservice 122 * @since 11 123 */ 124 /** 125 * Publishes an ordered, sticky, or standard common event. 126 * 127 * @param { string } event - name of the common event. 128 * @param { CommonEventPublishData } options - Indicate the CommonEventPublishData containing the common event 129 * content and attributes. 130 * @param { AsyncCallback<void> } callback - The callback of publish. 131 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 132 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 133 * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 134 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 135 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 136 * @throws { BusinessError } 1500009 - Failed to obtain system parameters. 137 * @syscap SystemCapability.Notification.CommonEvent 138 * @crossplatform 139 * @atomicservice 140 * @since 12 141 */ 142 function publish(event: string, options: CommonEventPublishData, callback: AsyncCallback<void>): void; 143 144 /** 145 * Publishes an ordered, sticky, or standard common event to a specified user. 146 * 147 * @param { string } event - Specified the names of the common events. 148 * @param { number } userId - Specified the user to receive the common events. 149 * @param { AsyncCallback<void> } callback - The callback of publishAsUser. 150 * @throws { BusinessError } 202 - not system app 151 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 152 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 153 * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 154 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 155 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 156 * @throws { BusinessError } 1500009 - Failed to obtain system parameters. 157 * @syscap SystemCapability.Notification.CommonEvent 158 * @systemapi 159 * @since 9 160 */ 161 function publishAsUser(event: string, userId: number, callback: AsyncCallback<void>): void; 162 163 /** 164 * Publishes an ordered, sticky, or standard common event to a specified user. 165 * 166 * @param { string } event - Specified the names of the common events. 167 * @param { number } userId - Specified the user to receive the common events. 168 * @param { CommonEventPublishData } options - Indicates the CommonEventPublishData containing the common event 169 * content and attributes. 170 * @param { AsyncCallback<void> } callback - The callback of publishAsUser. 171 * @throws { BusinessError } 202 - not system app 172 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 173 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 174 * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 175 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 176 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 177 * @throws { BusinessError } 1500009 - Failed to obtain system parameters. 178 * @syscap SystemCapability.Notification.CommonEvent 179 * @systemapi 180 * @since 9 181 */ 182 function publishAsUser( 183 event: string, 184 userId: number, 185 options: CommonEventPublishData, 186 callback: AsyncCallback<void> 187 ): void; 188 189 /** 190 * Creates a CommonEventSubscriber for the SubscriberInfo. 191 * 192 * @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber. 193 * @param { AsyncCallback<CommonEventSubscriber> } callback - The callback is used to return the 194 * CommonEventSubscriber object. 195 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 196 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 197 * @syscap SystemCapability.Notification.CommonEvent 198 * @since 9 199 */ 200 /** 201 * Creates a CommonEventSubscriber for the SubscriberInfo. 202 * 203 * @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber. 204 * @param { AsyncCallback<CommonEventSubscriber> } callback - The callback is used to return the 205 * CommonEventSubscriber object. 206 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 207 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 208 * @syscap SystemCapability.Notification.CommonEvent 209 * @crossplatform 210 * @atomicservice 211 * @since 11 212 */ 213 function createSubscriber( 214 subscribeInfo: CommonEventSubscribeInfo, 215 callback: AsyncCallback<CommonEventSubscriber> 216 ): void; 217 218 /** 219 * Creates a CommonEventSubscriber for the SubscriberInfo. 220 * 221 * @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber. 222 * @returns { Promise<CommonEventSubscriber> } Returns the CommonEventSubscriber object. 223 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 224 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 225 * @syscap SystemCapability.Notification.CommonEvent 226 * @since 9 227 */ 228 /** 229 * Creates a CommonEventSubscriber for the SubscriberInfo. 230 * 231 * @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber. 232 * @returns { Promise<CommonEventSubscriber> } Returns the CommonEventSubscriber object. 233 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 234 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 235 * @syscap SystemCapability.Notification.CommonEvent 236 * @crossplatform 237 * @atomicservice 238 * @since 11 239 */ 240 function createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise<CommonEventSubscriber>; 241 242 /** 243 * Creates a CommonEventSubscriber for the SubscriberInfo. 244 * 245 * @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber. 246 * @returns { CommonEventSubscriber } Returns the CommonEventSubscriber object. 247 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 248 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 249 * @syscap SystemCapability.Notification.CommonEvent 250 * @since 10 251 */ 252 /** 253 * Creates a CommonEventSubscriber for the SubscriberInfo. 254 * 255 * @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber. 256 * @returns { CommonEventSubscriber } Returns the CommonEventSubscriber object. 257 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 258 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 259 * @syscap SystemCapability.Notification.CommonEvent 260 * @atomicservice 261 * @since 11 262 */ 263 function createSubscriberSync(subscribeInfo: CommonEventSubscribeInfo): CommonEventSubscriber; 264 265 /** 266 * Subscribe an ordered, sticky, or standard common event. 267 * 268 * @param { CommonEventSubscriber } subscriber - Indicate the subscriber of the common event. 269 * @param { AsyncCallback<CommonEventData> } callback - The callback is used to return the CommonEventData object. 270 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 271 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 272 * @throws { BusinessError } 801 - capability not supported 273 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 274 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 275 * @syscap SystemCapability.Notification.CommonEvent 276 * @since 9 277 */ 278 /** 279 * Subscribe an ordered, sticky, or standard common event. 280 * 281 * @param { CommonEventSubscriber } subscriber - Indicate the subscriber of the common event. 282 * @param { AsyncCallback<CommonEventData> } callback - The callback is used to return the CommonEventData object. 283 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 284 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 285 * @throws { BusinessError } 801 - capability not supported 286 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 287 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 288 * @syscap SystemCapability.Notification.CommonEvent 289 * @crossplatform 290 * @atomicservice 291 * @since 11 292 */ 293 function subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback<CommonEventData>): void; 294 295 /** 296 * Unsubscribe from an ordered, sticky, or standard common event. 297 * 298 * @param { CommonEventSubscriber } subscriber - Indicate the subscriber of the common event. 299 * @param { AsyncCallback<void> } [callback] - The callback of unsubscribe. 300 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 301 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 302 * @throws { BusinessError } 801 - capability not supported 303 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 304 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 305 * @syscap SystemCapability.Notification.CommonEvent 306 * @since 9 307 */ 308 /** 309 * Unsubscribe from an ordered, sticky, or standard common event. 310 * 311 * @param { CommonEventSubscriber } subscriber - Indicate the subscriber of the common event. 312 * @param { AsyncCallback<void> } [callback] - The callback of unsubscribe. 313 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 314 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 315 * @throws { BusinessError } 801 - capability not supported 316 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 317 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 318 * @syscap SystemCapability.Notification.CommonEvent 319 * @crossplatform 320 * @atomicservice 321 * @since 11 322 */ 323 function unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback<void>): void; 324 325 /** 326 * Remove sticky common event. 327 * 328 * @permission ohos.permission.COMMONEVENT_STICKY 329 * @param { string } event - name of the common event. 330 * @param { AsyncCallback<void> } callback - The callback of removeStickyCommonEvent. 331 * @throws { BusinessError } 201 - The application dose not have permission to call the interface 332 * @throws { BusinessError } 202 - not system app 333 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 334 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 335 * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 336 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 337 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 338 * @syscap SystemCapability.Notification.CommonEvent 339 * @systemapi 340 * @since 10 341 */ 342 function removeStickyCommonEvent(event: string, callback: AsyncCallback<void>): void; 343 344 /** 345 * Remove sticky common event. 346 * 347 * @permission ohos.permission.COMMONEVENT_STICKY 348 * @param { string } event - name of the common event. 349 * @returns { Promise<void> } the promise returned by the function. 350 * @throws { BusinessError } 201 - The application dose not have permission to call the interface 351 * @throws { BusinessError } 202 - not system app 352 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 353 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 354 * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 355 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 356 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 357 * @syscap SystemCapability.Notification.CommonEvent 358 * @systemapi 359 * @since 10 360 */ 361 function removeStickyCommonEvent(event: string): Promise<void>; 362 363 /** 364 * Set static subscriber state. 365 * 366 * @param { boolean } enable - static subscribe event enable/disable state. 367 * @param { AsyncCallback<void> } callback - Specified callback method. 368 * @throws { BusinessError } 202 - not system app 369 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 370 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 371 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 372 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 373 * @syscap SystemCapability.Notification.CommonEvent 374 * @systemapi Hide this for inner system use. 375 * @StageModelOnly 376 * @since 10 377 */ 378 function setStaticSubscriberState(enable: boolean, callback: AsyncCallback<void>): void; 379 380 /** 381 * Set static subscriber state. 382 * 383 * @param { boolean } enable - static subscribe event enable/disable state. 384 * @returns { Promise<void> } the promise returned by the function. 385 * @throws { BusinessError } 202 - not system app 386 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 387 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 388 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 389 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 390 * @syscap SystemCapability.Notification.CommonEvent 391 * @systemapi Hide this for inner system use. 392 * @StageModelOnly 393 * @since 10 394 */ 395 function setStaticSubscriberState(enable: boolean): Promise<void>; 396 397 /** 398 * Set static subscriber state. 399 * 400 * @param { boolean } enable - static subscribe event enable/disable state. 401 * @param { Array<string> } events - The events array. 402 * @returns { Promise<void> } the promise returned by the function. 403 * @throws { BusinessError } 202 - not system app 404 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 405 * <br>2. Incorrect parameter types. 3. Parameter verification failed. 406 * @throws { BusinessError } 1500007 - Failed to send the message to the common event service. 407 * @throws { BusinessError } 1500008 - Failed to initialize the common event service. 408 * @syscap SystemCapability.Notification.CommonEvent 409 * @systemapi Hide this for inner system use. 410 * @StageModelOnly 411 * @since 12 412 */ 413 function setStaticSubscriberState(enable: boolean, events?: Array<string>): Promise<void>; 414 415 /** 416 * The event type that the commonEvent supported. 417 * 418 * @enum { string } 419 * @syscap SystemCapability.Notification.CommonEvent 420 * @since 9 421 */ 422 /** 423 * The event type that the commonEvent supported. 424 * 425 * @enum { string } 426 * @syscap SystemCapability.Notification.CommonEvent 427 * @atomicservice 428 * @since 11 429 */ 430 export enum Support { 431 /** 432 * This commonEvent means when the device is booted or system upgrade completed, and only be sent by system. 433 * This API can be called only by system applications. 434 * 435 * @syscap SystemCapability.Notification.CommonEvent 436 * @since 9 437 */ 438 COMMON_EVENT_BOOT_COMPLETED = 'usual.event.BOOT_COMPLETED', 439 440 /** 441 * This commonEvent means when the device finnish booting, but still in the locked state. 442 * 443 * @syscap SystemCapability.Notification.CommonEvent 444 * @since 9 445 */ 446 COMMON_EVENT_LOCKED_BOOT_COMPLETED = 'usual.event.LOCKED_BOOT_COMPLETED', 447 448 /** 449 * This commonEvent means when the device is shutting down, note: turn off, not sleeping. 450 * 451 * @syscap SystemCapability.Notification.CommonEvent 452 * @since 9 453 */ 454 COMMON_EVENT_SHUTDOWN = 'usual.event.SHUTDOWN', 455 456 /** 457 * This commonEvent means when the charging state, level and so on about the battery. 458 * 459 * @syscap SystemCapability.Notification.CommonEvent 460 * @since 9 461 */ 462 COMMON_EVENT_BATTERY_CHANGED = 'usual.event.BATTERY_CHANGED', 463 464 /** 465 * This commonEvent means when the device in low battery state.. 466 * 467 * @syscap SystemCapability.Notification.CommonEvent 468 * @since 9 469 */ 470 COMMON_EVENT_BATTERY_LOW = 'usual.event.BATTERY_LOW', 471 472 /** 473 * This commonEvent means when the battery level is an ok state. 474 * 475 * @syscap SystemCapability.Notification.CommonEvent 476 * @since 9 477 */ 478 COMMON_EVENT_BATTERY_OKAY = 'usual.event.BATTERY_OKAY', 479 480 /** 481 * This commonEvent means when the other power is connected to the device. 482 * 483 * @syscap SystemCapability.Notification.CommonEvent 484 * @since 9 485 */ 486 COMMON_EVENT_POWER_CONNECTED = 'usual.event.POWER_CONNECTED', 487 488 /** 489 * This commonEvent means when the other power is removed from the device. 490 * 491 * @syscap SystemCapability.Notification.CommonEvent 492 * @since 9 493 */ 494 COMMON_EVENT_POWER_DISCONNECTED = 'usual.event.POWER_DISCONNECTED', 495 496 /** 497 * This commonEvent means when the screen is turned off. 498 * 499 * @syscap SystemCapability.Notification.CommonEvent 500 * @since 9 501 */ 502 COMMON_EVENT_SCREEN_OFF = 'usual.event.SCREEN_OFF', 503 504 /** 505 * This commonEvent means when the device is awakened and interactive. 506 * 507 * @syscap SystemCapability.Notification.CommonEvent 508 * @since 9 509 */ 510 COMMON_EVENT_SCREEN_ON = 'usual.event.SCREEN_ON', 511 512 /** 513 * This commonEvent means when the thermal state level change 514 * 515 * @syscap SystemCapability.Notification.CommonEvent 516 * @since 9 517 */ 518 COMMON_EVENT_THERMAL_LEVEL_CHANGED = 'usual.event.THERMAL_LEVEL_CHANGED', 519 520 /** 521 * This commonEvent means when the device is about to enter the force sleep mode 522 * 523 * @syscap SystemCapability.Notification.CommonEvent 524 * @since 12 525 */ 526 COMMON_EVENT_ENTER_FORCE_SLEEP = 'usual.event.ENTER_FORCE_SLEEP', 527 528 /** 529 * This commonEvent means when the device exits the force sleep mode 530 * 531 * @syscap SystemCapability.Notification.CommonEvent 532 * @since 12 533 */ 534 COMMON_EVENT_EXIT_FORCE_SLEEP = 'usual.event.EXIT_FORCE_SLEEP', 535 536 /** 537 * This commonEvent means when the user is present after the device is awakened. 538 * 539 * @syscap SystemCapability.Notification.CommonEvent 540 * @since 9 541 * @deprecated since 10 542 */ 543 COMMON_EVENT_USER_PRESENT = 'usual.event.USER_PRESENT', 544 545 /** 546 * This commonEvent means when the current time is changed. 547 * 548 * @syscap SystemCapability.Notification.CommonEvent 549 * @since 9 550 */ 551 COMMON_EVENT_TIME_TICK = 'usual.event.TIME_TICK', 552 553 /** 554 * This commonEvent means when the time is set. 555 * 556 * @syscap SystemCapability.Notification.CommonEvent 557 * @since 9 558 */ 559 COMMON_EVENT_TIME_CHANGED = 'usual.event.TIME_CHANGED', 560 561 /** 562 * This commonEvent means when the current date is changed. 563 * 564 * @syscap SystemCapability.Notification.CommonEvent 565 * @since 9 566 */ 567 COMMON_EVENT_DATE_CHANGED = 'usual.event.DATE_CHANGED', 568 569 /** 570 * This commonEvent means when the time zone is changed. 571 * 572 * @syscap SystemCapability.Notification.CommonEvent 573 * @since 9 574 */ 575 COMMON_EVENT_TIMEZONE_CHANGED = 'usual.event.TIMEZONE_CHANGED', 576 577 /** 578 * This commonEvent means when the dialog to dismiss. 579 * 580 * @syscap SystemCapability.Notification.CommonEvent 581 * @since 9 582 */ 583 COMMON_EVENT_CLOSE_SYSTEM_DIALOGS = 'usual.event.CLOSE_SYSTEM_DIALOGS', 584 585 /** 586 * This commonEvent means when a new application package is installed on the device. 587 * 588 * @syscap SystemCapability.Notification.CommonEvent 589 * @since 9 590 */ 591 COMMON_EVENT_PACKAGE_ADDED = 'usual.event.PACKAGE_ADDED', 592 593 /** 594 * This commonEvent means when a new version application package is installed on the device and 595 * replace the old version.the data contains the name of the package. 596 * 597 * @syscap SystemCapability.Notification.CommonEvent 598 * @since 9 599 */ 600 COMMON_EVENT_PACKAGE_REPLACED = 'usual.event.PACKAGE_REPLACED', 601 602 /** 603 * This commonEvent means when a new version application package is installed on the device and 604 * replace the old version, it does not contain additional data and only be sent to the replaced application. 605 * 606 * @syscap SystemCapability.Notification.CommonEvent 607 * @since 9 608 */ 609 COMMON_EVENT_MY_PACKAGE_REPLACED = 'usual.event.MY_PACKAGE_REPLACED', 610 611 /** 612 * This commonEvent means when an existing application package is removed from the device. 613 * 614 * @syscap SystemCapability.Notification.CommonEvent 615 * @since 9 616 */ 617 COMMON_EVENT_PACKAGE_REMOVED = 'usual.event.PACKAGE_REMOVED', 618 619 /** 620 * This commonEvent means when an existing application package is removed from the device. 621 * 622 * @syscap SystemCapability.Notification.CommonEvent 623 * @since 9 624 */ 625 COMMON_EVENT_BUNDLE_REMOVED = 'usual.event.BUNDLE_REMOVED', 626 627 /** 628 * This commonEvent means when an existing application package is completely removed from the device. 629 * 630 * @syscap SystemCapability.Notification.CommonEvent 631 * @since 9 632 */ 633 COMMON_EVENT_PACKAGE_FULLY_REMOVED = 'usual.event.PACKAGE_FULLY_REMOVED', 634 635 /** 636 * This commonEvent means when an existing application package has been changed. 637 * 638 * @syscap SystemCapability.Notification.CommonEvent 639 * @since 9 640 */ 641 COMMON_EVENT_PACKAGE_CHANGED = 'usual.event.PACKAGE_CHANGED', 642 643 /** 644 * This commonEvent means the user has restarted a package, and all of its processes have been killed. 645 * 646 * @syscap SystemCapability.Notification.CommonEvent 647 * @since 9 648 */ 649 COMMON_EVENT_PACKAGE_RESTARTED = 'usual.event.PACKAGE_RESTARTED', 650 651 /** 652 * This commonEvent means the user has cleared the package data. 653 * 654 * @syscap SystemCapability.Notification.CommonEvent 655 * @since 9 656 */ 657 COMMON_EVENT_PACKAGE_DATA_CLEARED = 'usual.event.PACKAGE_DATA_CLEARED', 658 659 /** 660 * This commonEvent means the user has cleared the package cache. 661 * 662 * @syscap SystemCapability.Notification.CommonEvent 663 * @since 9 664 */ 665 COMMON_EVENT_PACKAGE_CACHE_CLEARED = 'usual.event.PACKAGE_CACHE_CLEARED', 666 667 /** 668 * This commonEvent means the packages have been suspended. 669 * 670 * @syscap SystemCapability.Notification.CommonEvent 671 * @since 9 672 */ 673 COMMON_EVENT_PACKAGES_SUSPENDED = 'usual.event.PACKAGES_SUSPENDED', 674 675 /** 676 * This commonEvent means the packages have been un-suspended. 677 * 678 * @syscap SystemCapability.Notification.CommonEvent 679 * @since 9 680 */ 681 COMMON_EVENT_PACKAGES_UNSUSPENDED = 'usual.event.PACKAGES_UNSUSPENDED', 682 683 /** 684 * This commonEvent Sent to a package that has been suspended by the system. 685 * 686 * @syscap SystemCapability.Notification.CommonEvent 687 * @since 9 688 */ 689 COMMON_EVENT_MY_PACKAGE_SUSPENDED = 'usual.event.MY_PACKAGE_SUSPENDED', 690 691 /** 692 * Sent to a package that has been un-suspended. 693 * 694 * @syscap SystemCapability.Notification.CommonEvent 695 * @since 9 696 */ 697 COMMON_EVENT_MY_PACKAGE_UNSUSPENDED = 'usual.event.MY_PACKAGE_UNSUSPENDED', 698 699 /** 700 * A user id has been removed from the system. 701 * 702 * @syscap SystemCapability.Notification.CommonEvent 703 * @since 9 704 */ 705 COMMON_EVENT_UID_REMOVED = 'usual.event.UID_REMOVED', 706 707 /** 708 * The application is first launched after installed. 709 * 710 * @syscap SystemCapability.Notification.CommonEvent 711 * @since 9 712 */ 713 COMMON_EVENT_PACKAGE_FIRST_LAUNCH = 'usual.event.PACKAGE_FIRST_LAUNCH', 714 715 /** 716 * Sent by system package verifier when a package need to be verified. 717 * 718 * @syscap SystemCapability.Notification.CommonEvent 719 * @since 9 720 */ 721 COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION = 'usual.event.PACKAGE_NEEDS_VERIFICATION', 722 723 /** 724 * Sent by system package verifier when a package is verified. 725 * 726 * @syscap SystemCapability.Notification.CommonEvent 727 * @since 9 728 */ 729 COMMON_EVENT_PACKAGE_VERIFIED = 'usual.event.PACKAGE_VERIFIED', 730 731 /** 732 * Resources for a set of packages (which were previously unavailable) are currently 733 * available since the media on which they exist is available. 734 * 735 * @syscap SystemCapability.Notification.CommonEvent 736 * @since 9 737 */ 738 COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE = 'usual.event.EXTERNAL_APPLICATIONS_AVAILABLE', 739 740 /** 741 * Resources for a set of packages are currently unavailable since the media on which they exist is unavailable. 742 * 743 * @syscap SystemCapability.Notification.CommonEvent 744 * @since 9 745 */ 746 COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE = 'usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE', 747 748 /** 749 * The device configuration such as orientation,locale have been changed. 750 * 751 * @syscap SystemCapability.Notification.CommonEvent 752 * @since 9 753 */ 754 COMMON_EVENT_CONFIGURATION_CHANGED = 'usual.event.CONFIGURATION_CHANGED', 755 756 /** 757 * The current device's locale has changed. 758 * 759 * @syscap SystemCapability.Notification.CommonEvent 760 * @since 9 761 */ 762 COMMON_EVENT_LOCALE_CHANGED = 'usual.event.LOCALE_CHANGED', 763 764 /** 765 * Indicates low memory condition notification acknowledged by user and package management should be started. 766 * 767 * @syscap SystemCapability.Notification.CommonEvent 768 * @since 9 769 */ 770 COMMON_EVENT_MANAGE_PACKAGE_STORAGE = 'usual.event.MANAGE_PACKAGE_STORAGE', 771 772 /** 773 * Send by the smart function when the system in drive mode. 774 * 775 * @syscap SystemCapability.Notification.CommonEvent 776 * @since 9 777 */ 778 COMMON_EVENT_DRIVE_MODE = 'common.event.DRIVE_MODE', 779 780 /** 781 * Send by the smart function when the system in home mode. 782 * 783 * @syscap SystemCapability.Notification.CommonEvent 784 * @since 9 785 */ 786 COMMON_EVENT_HOME_MODE = 'common.event.HOME_MODE', 787 788 /** 789 * Send by the smart function when the system in office mode. 790 * 791 * @syscap SystemCapability.Notification.CommonEvent 792 * @since 9 793 */ 794 COMMON_EVENT_OFFICE_MODE = 'common.event.OFFICE_MODE', 795 796 /** 797 * Remind new user of preparing to start. 798 * 799 * @syscap SystemCapability.Notification.CommonEvent 800 * @since 9 801 */ 802 COMMON_EVENT_USER_STARTED = 'usual.event.USER_STARTED', 803 804 /** 805 * Remind previous user of that the service has been the background. 806 * 807 * @syscap SystemCapability.Notification.CommonEvent 808 * @since 9 809 */ 810 COMMON_EVENT_USER_BACKGROUND = 'usual.event.USER_BACKGROUND', 811 812 /** 813 * Remind new user of that the service has been the foreground. 814 * 815 * @syscap SystemCapability.Notification.CommonEvent 816 * @since 9 817 */ 818 COMMON_EVENT_USER_FOREGROUND = 'usual.event.USER_FOREGROUND', 819 820 /** 821 * Remind new user of that the service has been switched to new user. 822 * 823 * @syscap SystemCapability.Notification.CommonEvent 824 * This API can be called only by system applications. 825 * @since 9 826 */ 827 COMMON_EVENT_USER_SWITCHED = 'usual.event.USER_SWITCHED', 828 829 /** 830 * Remind new user of that the service has been starting. 831 * 832 * @syscap SystemCapability.Notification.CommonEvent 833 * This API can be called only by system applications. 834 * @since 9 835 */ 836 COMMON_EVENT_USER_STARTING = 'usual.event.USER_STARTING', 837 838 /** 839 * Remind new user of that the service has been unlocked. 840 * 841 * @syscap SystemCapability.Notification.CommonEvent 842 * @since 9 843 */ 844 COMMON_EVENT_USER_UNLOCKED = 'usual.event.USER_UNLOCKED', 845 846 /** 847 * Remind new user of that the service has been stopping. 848 * 849 * @syscap SystemCapability.Notification.CommonEvent 850 * This API can be called only by system applications. 851 * @since 9 852 */ 853 COMMON_EVENT_USER_STOPPING = 'usual.event.USER_STOPPING', 854 855 /** 856 * Remind new user of that the service has stopped. 857 * 858 * @syscap SystemCapability.Notification.CommonEvent 859 * @since 9 860 */ 861 COMMON_EVENT_USER_STOPPED = 'usual.event.USER_STOPPED', 862 863 /** 864 * Distributed account login successfully. 865 * 866 * @syscap SystemCapability.Notification.CommonEvent 867 * @since 9 868 */ 869 /** 870 * Distributed account login successfully. 871 * 872 * @syscap SystemCapability.Notification.CommonEvent 873 * @atomicservice 874 * @since 12 875 */ 876 COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN = 'common.event.DISTRIBUTED_ACCOUNT_LOGIN', 877 878 /** 879 * Distributed account logout successfully. 880 * 881 * @syscap SystemCapability.Notification.CommonEvent 882 * @since 9 883 */ 884 /** 885 * Distributed account logout successfully. 886 * 887 * @syscap SystemCapability.Notification.CommonEvent 888 * @atomicservice 889 * @since 12 890 */ 891 COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT = 'common.event.DISTRIBUTED_ACCOUNT_LOGOUT', 892 893 /** 894 * Distributed account is invalid. 895 * 896 * @syscap SystemCapability.Notification.CommonEvent 897 * @since 9 898 */ 899 /** 900 * Distributed account is invalid. 901 * 902 * @syscap SystemCapability.Notification.CommonEvent 903 * @atomicservice 904 * @since 12 905 */ 906 COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID = 'common.event.DISTRIBUTED_ACCOUNT_TOKEN_INVALID', 907 908 /** 909 * Distributed account logs off. 910 * 911 * @syscap SystemCapability.Notification.CommonEvent 912 * @since 9 913 */ 914 /** 915 * Distributed account logs off. 916 * 917 * @syscap SystemCapability.Notification.CommonEvent 918 * @atomicservice 919 * @since 12 920 */ 921 COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF = 'common.event.DISTRIBUTED_ACCOUNT_LOGOFF', 922 923 /** 924 * WIFI state. 925 * 926 * @syscap SystemCapability.Notification.CommonEvent 927 * @since 9 928 */ 929 COMMON_EVENT_WIFI_POWER_STATE = 'usual.event.wifi.POWER_STATE', 930 931 /** 932 * WIFI scan results. 933 * 934 * @syscap SystemCapability.Notification.CommonEvent 935 * @since 9 936 */ 937 COMMON_EVENT_WIFI_SCAN_FINISHED = 'usual.event.wifi.SCAN_FINISHED', 938 939 /** 940 * WIFI RSSI change. 941 * 942 * @syscap SystemCapability.Notification.CommonEvent 943 * @since 9 944 */ 945 COMMON_EVENT_WIFI_RSSI_VALUE = 'usual.event.wifi.RSSI_VALUE', 946 947 /** 948 * WIFI connect state. 949 * 950 * @syscap SystemCapability.Notification.CommonEvent 951 * @since 9 952 */ 953 COMMON_EVENT_WIFI_CONN_STATE = 'usual.event.wifi.CONN_STATE', 954 955 /** 956 * WIFI hotspot state. 957 * 958 * @syscap SystemCapability.Notification.CommonEvent 959 * @since 9 960 */ 961 COMMON_EVENT_WIFI_HOTSPOT_STATE = 'usual.event.wifi.HOTSPOT_STATE', 962 963 /** 964 * WIFI ap sta join. 965 * 966 * @syscap SystemCapability.Notification.CommonEvent 967 * @since 9 968 */ 969 COMMON_EVENT_WIFI_AP_STA_JOIN = 'usual.event.wifi.WIFI_HS_STA_JOIN', 970 971 /** 972 * WIFI ap sta join. 973 * 974 * @syscap SystemCapability.Notification.CommonEvent 975 * @since 9 976 */ 977 COMMON_EVENT_WIFI_AP_STA_LEAVE = 'usual.event.wifi.WIFI_HS_STA_LEAVE', 978 979 /** 980 * Indicates Wi-Fi MpLink state notification acknowledged by binding or unbinding MpLink. 981 * 982 * @syscap SystemCapability.Notification.CommonEvent 983 * @since 9 984 */ 985 COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE = 'usual.event.wifi.mplink.STATE_CHANGE', 986 987 /** 988 * Indicates Wi-Fi P2P connection state notification acknowledged by connecting or disconnected P2P. 989 * 990 * @syscap SystemCapability.Notification.CommonEvent 991 * @since 9 992 */ 993 COMMON_EVENT_WIFI_P2P_CONN_STATE = 'usual.event.wifi.p2p.CONN_STATE_CHANGE', 994 995 /** 996 * Indicates that the Wi-Fi P2P state change. 997 * 998 * @syscap SystemCapability.Notification.CommonEvent 999 * @since 9 1000 */ 1001 COMMON_EVENT_WIFI_P2P_STATE_CHANGED = 'usual.event.wifi.p2p.STATE_CHANGE', 1002 1003 /** 1004 * Indicates that the Wi-Fi P2P peers state change. 1005 * 1006 * @syscap SystemCapability.Notification.CommonEvent 1007 * @since 9 1008 */ 1009 COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED = 'usual.event.wifi.p2p.DEVICES_CHANGE', 1010 1011 /** 1012 * Indicates that the Wi-Fi P2P discovery state change. 1013 * 1014 * @syscap SystemCapability.Notification.CommonEvent 1015 * @since 9 1016 */ 1017 COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED = 'usual.event.wifi.p2p.PEER_DISCOVERY_STATE_CHANGE', 1018 1019 /** 1020 * Indicates that the Wi-Fi P2P current device state change. 1021 * 1022 * @syscap SystemCapability.Notification.CommonEvent 1023 * @since 9 1024 */ 1025 COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED = 'usual.event.wifi.p2p.CURRENT_DEVICE_CHANGE', 1026 1027 /** 1028 * Indicates that the Wi-Fi P2P group info is changed. 1029 * 1030 * @syscap SystemCapability.Notification.CommonEvent 1031 * @since 9 1032 */ 1033 COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED = 'usual.event.wifi.p2p.GROUP_STATE_CHANGED', 1034 1035 /** 1036 * Bluetooth.handsfree.ag.connect.state.update. 1037 * 1038 * @syscap SystemCapability.Notification.CommonEvent 1039 * @since 9 1040 */ 1041 COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE', 1042 1043 /** 1044 * Bluetooth.handsfree.ag.current.device.update. 1045 * 1046 * @syscap SystemCapability.Notification.CommonEvent 1047 * @since 9 1048 */ 1049 COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE = 'usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE', 1050 1051 /** 1052 * Bluetooth.handsfree.ag.audio.state.update. 1053 * 1054 * @syscap SystemCapability.Notification.CommonEvent 1055 * @since 9 1056 */ 1057 COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE = 'usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE', 1058 1059 /** 1060 * Bluetooth.a2dpsource.connect.state.update. 1061 * 1062 * @syscap SystemCapability.Notification.CommonEvent 1063 * @since 9 1064 */ 1065 COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE', 1066 1067 /** 1068 * Bluetooth.a2dpsource.current.device.update. 1069 * 1070 * @syscap SystemCapability.Notification.CommonEvent 1071 * @since 9 1072 */ 1073 COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE = 'usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE', 1074 1075 /** 1076 * Bluetooth.a2dpsource.playing.state.update. 1077 * 1078 * @syscap SystemCapability.Notification.CommonEvent 1079 * @since 9 1080 */ 1081 COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE = 'usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE', 1082 1083 /** 1084 * Bluetooth.a2dpsource.avrcp.connect.state.update. 1085 * 1086 * @syscap SystemCapability.Notification.CommonEvent 1087 * @since 9 1088 */ 1089 COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE', 1090 1091 /** 1092 * Bluetooth.a2dpsource.codec.value.update. 1093 * 1094 * @syscap SystemCapability.Notification.CommonEvent 1095 * @since 9 1096 */ 1097 COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE = 'usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE', 1098 1099 /** 1100 * Bluetooth.remotedevice.discovered. 1101 * 1102 * @syscap SystemCapability.Notification.CommonEvent 1103 * @since 9 1104 */ 1105 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED = 'usual.event.bluetooth.remotedevice.DISCOVERED', 1106 1107 /** 1108 * Bluetooth.remotedevice.class.value.update. 1109 * 1110 * @syscap SystemCapability.Notification.CommonEvent 1111 * @since 9 1112 */ 1113 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE = 'usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE', 1114 1115 /** 1116 * Bluetooth.remotedevice.acl.connected. 1117 * 1118 * @syscap SystemCapability.Notification.CommonEvent 1119 * @since 9 1120 */ 1121 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED = 'usual.event.bluetooth.remotedevice.ACL_CONNECTED', 1122 1123 /** 1124 * Bluetooth.remotedevice.acl.disconnected. 1125 * 1126 * @syscap SystemCapability.Notification.CommonEvent 1127 * @since 9 1128 */ 1129 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED = 'usual.event.bluetooth.remotedevice.ACL_DISCONNECTED', 1130 1131 /** 1132 * Bluetooth.remotedevice.name.update. 1133 * 1134 * @syscap SystemCapability.Notification.CommonEvent 1135 * @since 9 1136 */ 1137 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE = 'usual.event.bluetooth.remotedevice.NAME_UPDATE', 1138 1139 /** 1140 * Bluetooth.remotedevice.pair.state. 1141 * 1142 * @syscap SystemCapability.Notification.CommonEvent 1143 * @since 9 1144 */ 1145 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE = 'usual.event.bluetooth.remotedevice.PAIR_STATE', 1146 1147 /** 1148 * Bluetooth.remotedevice.battery.value.update. 1149 * 1150 * @syscap SystemCapability.Notification.CommonEvent 1151 * @since 9 1152 */ 1153 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE = 'usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE', 1154 1155 /** 1156 * Bluetooth.remotedevice.sdp.result. 1157 * 1158 * @syscap SystemCapability.Notification.CommonEvent 1159 * @since 9 1160 */ 1161 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT = 'usual.event.bluetooth.remotedevice.SDP_RESULT', 1162 1163 /** 1164 * Bluetooth.remotedevice.uuid.value. 1165 * 1166 * @syscap SystemCapability.Notification.CommonEvent 1167 * @since 9 1168 */ 1169 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE = 'usual.event.bluetooth.remotedevice.UUID_VALUE', 1170 1171 /** 1172 * Bluetooth.remotedevice.pairing.req. 1173 * 1174 * @syscap SystemCapability.Notification.CommonEvent 1175 * @since 9 1176 */ 1177 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ = 'usual.event.bluetooth.remotedevice.PAIRING_REQ', 1178 1179 /** 1180 * Bluetooth.remotedevice.pairing.cancel. 1181 * 1182 * @syscap SystemCapability.Notification.CommonEvent 1183 * @since 9 1184 */ 1185 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL = 'usual.event.bluetooth.remotedevice.PAIRING_CANCEL', 1186 1187 /** 1188 * Bluetooth.remotedevice.connect.req. 1189 * 1190 * @syscap SystemCapability.Notification.CommonEvent 1191 * @since 9 1192 */ 1193 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ = 'usual.event.bluetooth.remotedevice.CONNECT_REQ', 1194 1195 /** 1196 * Bluetooth.remotedevice.connect.reply. 1197 * 1198 * @syscap SystemCapability.Notification.CommonEvent 1199 * @since 9 1200 */ 1201 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY = 'usual.event.bluetooth.remotedevice.CONNECT_REPLY', 1202 1203 /** 1204 * Bluetooth.remotedevice.connect.cancel. 1205 * 1206 * @syscap SystemCapability.Notification.CommonEvent 1207 * @since 9 1208 */ 1209 COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL = 'usual.event.bluetooth.remotedevice.CONNECT_CANCEL', 1210 1211 /** 1212 * Bluetooth.handsfreeunit.connect.state.update. 1213 * 1214 * @syscap SystemCapability.Notification.CommonEvent 1215 * @since 9 1216 */ 1217 COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE', 1218 1219 /** 1220 * Bluetooth.handsfreeunit.audio.state.update. 1221 * 1222 * @syscap SystemCapability.Notification.CommonEvent 1223 * @since 9 1224 */ 1225 COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE = 'usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE', 1226 1227 /** 1228 * Bluetooth.handsfreeunit.ag.common.event. 1229 * 1230 * @syscap SystemCapability.Notification.CommonEvent 1231 * @since 9 1232 */ 1233 COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT = 'usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT', 1234 1235 /** 1236 * Bluetooth.handsfreeunit.ag.call.state.update. 1237 * 1238 * @syscap SystemCapability.Notification.CommonEvent 1239 * @since 9 1240 */ 1241 COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE = 'usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE', 1242 1243 /** 1244 * Bluetooth.host.state.update. 1245 * 1246 * @syscap SystemCapability.Notification.CommonEvent 1247 * @since 9 1248 */ 1249 COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE = 'usual.event.bluetooth.host.STATE_UPDATE', 1250 1251 /** 1252 * Bluetooth.host.req.discoverable. 1253 * 1254 * @syscap SystemCapability.Notification.CommonEvent 1255 * @since 9 1256 */ 1257 COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE = 'usual.event.bluetooth.host.REQ_DISCOVERABLE', 1258 1259 /** 1260 * Bluetooth.host.req.enable. 1261 * 1262 * @syscap SystemCapability.Notification.CommonEvent 1263 * @since 9 1264 */ 1265 COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE = 'usual.event.bluetooth.host.REQ_ENABLE', 1266 1267 /** 1268 * Bluetooth.host.req.disable. 1269 * 1270 * @syscap SystemCapability.Notification.CommonEvent 1271 * @since 9 1272 */ 1273 COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE = 'usual.event.bluetooth.host.REQ_DISABLE', 1274 1275 /** 1276 * Bluetooth.host.scan.mode.update. 1277 * 1278 * @syscap SystemCapability.Notification.CommonEvent 1279 * @since 9 1280 */ 1281 COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE = 'usual.event.bluetooth.host.SCAN_MODE_UPDATE', 1282 1283 /** 1284 * Bluetooth.host.discovery.stated. 1285 * 1286 * @syscap SystemCapability.Notification.CommonEvent 1287 * @since 9 1288 */ 1289 COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED = 'usual.event.bluetooth.host.DISCOVERY_STARTED', 1290 1291 /** 1292 * Bluetooth.host.discovery.finished. 1293 * 1294 * @syscap SystemCapability.Notification.CommonEvent 1295 * @since 9 1296 */ 1297 COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED = 'usual.event.bluetooth.host.DISCOVERY_FINISHED', 1298 1299 /** 1300 * Bluetooth.host.name.update. 1301 * 1302 * @syscap SystemCapability.Notification.CommonEvent 1303 * @since 9 1304 */ 1305 COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE = 'usual.event.bluetooth.host.NAME_UPDATE', 1306 1307 /** 1308 * Bluetooth.a2dp.connect.state.update. 1309 * 1310 * @syscap SystemCapability.Notification.CommonEvent 1311 * @since 9 1312 */ 1313 COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE', 1314 1315 /** 1316 * Bluetooth.a2dp.playing.state.update. 1317 * 1318 * @syscap SystemCapability.Notification.CommonEvent 1319 * @since 9 1320 */ 1321 COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE = 'usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE', 1322 1323 /** 1324 * Bluetooth.a2dp.audio.state.update. 1325 * 1326 * @syscap SystemCapability.Notification.CommonEvent 1327 * @since 9 1328 */ 1329 COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE = 'usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE', 1330 1331 /** 1332 * Nfc state change. 1333 * 1334 * @syscap SystemCapability.Notification.CommonEvent 1335 * @since 9 1336 */ 1337 COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED = 'usual.event.nfc.action.ADAPTER_STATE_CHANGED', 1338 1339 /** 1340 * Nfc field on detected. 1341 * 1342 * @syscap SystemCapability.Notification.CommonEvent 1343 * @since 9 1344 */ 1345 COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED = 'usual.event.nfc.action.RF_FIELD_ON_DETECTED', 1346 1347 /** 1348 * Nfc field off detected. 1349 * 1350 * @syscap SystemCapability.Notification.CommonEvent 1351 * @since 9 1352 */ 1353 COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED = 'usual.event.nfc.action.RF_FIELD_OFF_DETECTED', 1354 1355 /** 1356 * Sent when stop charging battery. 1357 * 1358 * @syscap SystemCapability.Notification.CommonEvent 1359 * @since 9 1360 */ 1361 COMMON_EVENT_DISCHARGING = 'usual.event.DISCHARGING', 1362 1363 /** 1364 * Sent when start charging battery. 1365 * 1366 * @syscap SystemCapability.Notification.CommonEvent 1367 * @since 9 1368 */ 1369 COMMON_EVENT_CHARGING = 'usual.event.CHARGING', 1370 1371 /** 1372 * Sent when charge type changed. 1373 * 1374 * @syscap SystemCapability.Notification.CommonEvent 1375 * @systemapi 1376 * @since 10 1377 */ 1378 COMMON_EVENT_CHARGE_TYPE_CHANGED = 'usual.event.CHARGE_TYPE_CHANGED', 1379 1380 /** 1381 * Sent when device's idle mode changed 1382 * 1383 * @syscap SystemCapability.Notification.CommonEvent 1384 * @since 9 1385 */ 1386 COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED = 'usual.event.DEVICE_IDLE_MODE_CHANGED', 1387 1388 /** 1389 * Sent when device's charge idle mode changed. 1390 * 1391 * @syscap SystemCapability.Notification.CommonEvent 1392 * @since 10 1393 */ 1394 COMMON_EVENT_CHARGE_IDLE_MODE_CHANGED = 'usual.event.CHARGE_IDLE_MODE_CHANGED', 1395 1396 /** 1397 * Sent when the list of exempt applications in idle mode is updated. 1398 * 1399 * @syscap SystemCapability.Notification.CommonEvent 1400 * @systemapi 1401 * @since 10 1402 */ 1403 COMMON_EVENT_DEVICE_IDLE_EXEMPTION_LIST_UPDATED = 'usual.event.DEVICE_IDLE_EXEMPTION_LIST_UPDATED', 1404 1405 /** 1406 * Sent when device's power save mode changed 1407 * 1408 * @syscap SystemCapability.Notification.CommonEvent 1409 * @since 9 1410 */ 1411 COMMON_EVENT_POWER_SAVE_MODE_CHANGED = 'usual.event.POWER_SAVE_MODE_CHANGED', 1412 1413 /** 1414 * User added. 1415 * 1416 * @syscap SystemCapability.Notification.CommonEvent 1417 * This API can be called only by system applications. 1418 * @since 9 1419 */ 1420 COMMON_EVENT_USER_ADDED = 'usual.event.USER_ADDED', 1421 1422 /** 1423 * User removed. 1424 * 1425 * @syscap SystemCapability.Notification.CommonEvent 1426 * This API can be called only by system applications. 1427 * @since 9 1428 */ 1429 COMMON_EVENT_USER_REMOVED = 'usual.event.USER_REMOVED', 1430 1431 /** 1432 * Sent when ability is added. 1433 * 1434 * @syscap SystemCapability.Notification.CommonEvent 1435 * @since 9 1436 */ 1437 COMMON_EVENT_ABILITY_ADDED = 'common.event.ABILITY_ADDED', 1438 1439 /** 1440 * Sent when ability is removed. 1441 * 1442 * @syscap SystemCapability.Notification.CommonEvent 1443 * @since 9 1444 */ 1445 COMMON_EVENT_ABILITY_REMOVED = 'common.event.ABILITY_REMOVED', 1446 1447 /** 1448 * Sent when ability is updated. 1449 * 1450 * @syscap SystemCapability.Notification.CommonEvent 1451 * @since 9 1452 */ 1453 COMMON_EVENT_ABILITY_UPDATED = 'common.event.ABILITY_UPDATED', 1454 1455 /** 1456 * Gps mode state changed. 1457 * 1458 * @syscap SystemCapability.Notification.CommonEvent 1459 * @since 9 1460 */ 1461 COMMON_EVENT_LOCATION_MODE_STATE_CHANGED = 'usual.event.location.MODE_STATE_CHANGED', 1462 1463 /** 1464 * The ivi is about to go into sleep state when the ivi is turned off power. 1465 * This is a protected common event that can only be sent by system. 1466 * 1467 * @syscap SystemCapability.Notification.CommonEvent 1468 * @since 9 1469 */ 1470 COMMON_EVENT_IVI_SLEEP = 'common.event.IVI_SLEEP', 1471 1472 /** 1473 * The ivi is slept and notify the app stop playing. 1474 * This is a protected common event that can only be sent by system. 1475 * 1476 * @syscap SystemCapability.Notification.CommonEvent 1477 * @since 9 1478 */ 1479 COMMON_EVENT_IVI_PAUSE = 'common.event.IVI_PAUSE', 1480 1481 /** 1482 * The ivi is standby and notify the app stop playing. 1483 * This is a protected common event that can only be sent by system. 1484 * 1485 * @syscap SystemCapability.Notification.CommonEvent 1486 * @since 9 1487 */ 1488 COMMON_EVENT_IVI_STANDBY = 'common.event.IVI_STANDBY', 1489 1490 /** 1491 * The app stop playing and save state. 1492 * This is a protected common event that can only be sent by system. 1493 * 1494 * @syscap SystemCapability.Notification.CommonEvent 1495 * @since 9 1496 */ 1497 COMMON_EVENT_IVI_LASTMODE_SAVE = 'common.event.IVI_LASTMODE_SAVE', 1498 1499 /** 1500 * The ivi is voltage abnormal. 1501 * This is a protected common event that can only be sent by system. 1502 * 1503 * @syscap SystemCapability.Notification.CommonEvent 1504 * @since 9 1505 */ 1506 COMMON_EVENT_IVI_VOLTAGE_ABNORMAL = 'common.event.IVI_VOLTAGE_ABNORMAL', 1507 1508 /** 1509 * The ivi temperature is too high. 1510 * This is a protected common event that can only be sent by system.this common event will be delete later, 1511 * please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL. 1512 * 1513 * @syscap SystemCapability.Notification.CommonEvent 1514 * @since 9 1515 */ 1516 COMMON_EVENT_IVI_HIGH_TEMPERATURE = 'common.event.IVI_HIGH_TEMPERATURE', 1517 1518 /** 1519 * The ivi temperature is extreme high. 1520 * This is a protected common event that can only be sent by system.this common event will be delete later, 1521 * please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL. 1522 * 1523 * @syscap SystemCapability.Notification.CommonEvent 1524 * @since 9 1525 */ 1526 COMMON_EVENT_IVI_EXTREME_TEMPERATURE = 'common.event.IVI_EXTREME_TEMPERATURE', 1527 1528 /** 1529 * The ivi temperature is abnormal. 1530 * This is a protected common event that can only be sent by system. 1531 * 1532 * @syscap SystemCapability.Notification.CommonEvent 1533 * @since 9 1534 */ 1535 COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL = 'common.event.IVI_TEMPERATURE_ABNORMAL', 1536 1537 /** 1538 * The ivi voltage is recovery. 1539 * This is a protected common event that can only be sent by system. 1540 * 1541 * @syscap SystemCapability.Notification.CommonEvent 1542 * @since 9 1543 */ 1544 COMMON_EVENT_IVI_VOLTAGE_RECOVERY = 'common.event.IVI_VOLTAGE_RECOVERY', 1545 1546 /** 1547 * The ivi temperature is recovery. 1548 * This is a protected common event that can only be sent by system. 1549 * 1550 * @syscap SystemCapability.Notification.CommonEvent 1551 * @since 9 1552 */ 1553 COMMON_EVENT_IVI_TEMPERATURE_RECOVERY = 'common.event.IVI_TEMPERATURE_RECOVERY', 1554 1555 /** 1556 * The battery service is active. 1557 * This is a protected common event that can only be sent by system. 1558 * 1559 * @syscap SystemCapability.Notification.CommonEvent 1560 * @since 9 1561 */ 1562 COMMON_EVENT_IVI_ACTIVE = 'common.event.IVI_ACTIVE', 1563 1564 /** 1565 * The usb state change events. 1566 * This is a protected common event that can only be sent by system. 1567 * 1568 * @syscap SystemCapability.Notification.CommonEvent 1569 * @since 9 1570 */ 1571 COMMON_EVENT_USB_STATE = 'usual.event.hardware.usb.action.USB_STATE', 1572 1573 /** 1574 * The usb port changed. 1575 * This is a protected common event that can only be sent by system. 1576 * 1577 * @syscap SystemCapability.Notification.CommonEvent 1578 * @since 9 1579 */ 1580 COMMON_EVENT_USB_PORT_CHANGED = 'usual.event.hardware.usb.action.USB_PORT_CHANGED', 1581 1582 /** 1583 * The usb device attached. 1584 * This is a protected common event that can only be sent by system. 1585 * 1586 * @syscap SystemCapability.Notification.CommonEvent 1587 * @since 9 1588 */ 1589 COMMON_EVENT_USB_DEVICE_ATTACHED = 'usual.event.hardware.usb.action.USB_DEVICE_ATTACHED', 1590 1591 /** 1592 * The usb device detached. 1593 * This is a protected common event that can only be sent by system. 1594 * 1595 * @syscap SystemCapability.Notification.CommonEvent 1596 * @since 9 1597 */ 1598 COMMON_EVENT_USB_DEVICE_DETACHED = 'usual.event.hardware.usb.action.USB_DEVICE_DETACHED', 1599 1600 /** 1601 * The usb accessory attached. 1602 * This is a protected common event that can only be sent by system. 1603 * 1604 * @syscap SystemCapability.Notification.CommonEvent 1605 * @since 9 1606 */ 1607 COMMON_EVENT_USB_ACCESSORY_ATTACHED = 'usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED', 1608 1609 /** 1610 * The usb accessory detached. 1611 * This is a protected common event that can only be sent by system. 1612 * 1613 * @syscap SystemCapability.Notification.CommonEvent 1614 * @since 9 1615 */ 1616 COMMON_EVENT_USB_ACCESSORY_DETACHED = 'usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED', 1617 1618 /** 1619 * The external storage was removed. 1620 * This is a protected common event that can only be sent by system. 1621 * 1622 * @syscap SystemCapability.Notification.CommonEvent 1623 * @since 9 1624 */ 1625 COMMON_EVENT_DISK_REMOVED = 'usual.event.data.DISK_REMOVED', 1626 1627 /** 1628 * The external storage was unmounted. 1629 * This is a protected common event that can only be sent by system. 1630 * 1631 * @syscap SystemCapability.Notification.CommonEvent 1632 * @since 9 1633 */ 1634 COMMON_EVENT_DISK_UNMOUNTED = 'usual.event.data.DISK_UNMOUNTED', 1635 1636 /** 1637 * The external storage was mounted. 1638 * This is a protected common event that can only be sent by system. 1639 * 1640 * @syscap SystemCapability.Notification.CommonEvent 1641 * @since 9 1642 */ 1643 COMMON_EVENT_DISK_MOUNTED = 'usual.event.data.DISK_MOUNTED', 1644 1645 /** 1646 * The external storage was bad removal. 1647 * This is a protected common event that can only be sent by system. 1648 * 1649 * @syscap SystemCapability.Notification.CommonEvent 1650 * @since 9 1651 */ 1652 COMMON_EVENT_DISK_BAD_REMOVAL = 'usual.event.data.DISK_BAD_REMOVAL', 1653 1654 /** 1655 * The external storage was unmountable. 1656 * This is a protected common event that can only be sent by system. 1657 * 1658 * @syscap SystemCapability.Notification.CommonEvent 1659 * @since 9 1660 */ 1661 COMMON_EVENT_DISK_UNMOUNTABLE = 'usual.event.data.DISK_UNMOUNTABLE', 1662 1663 /** 1664 * The external storage was eject. 1665 * This is a protected common event that can only be sent by system. 1666 * 1667 * @syscap SystemCapability.Notification.CommonEvent 1668 * @since 9 1669 */ 1670 COMMON_EVENT_DISK_EJECT = 'usual.event.data.DISK_EJECT', 1671 1672 /** 1673 * The external storage was removed. 1674 * This is a protected common event that can only be sent by system. 1675 * This API can be called only by system applications. 1676 * 1677 * @syscap SystemCapability.Notification.CommonEvent 1678 * @since 9 1679 */ 1680 COMMON_EVENT_VOLUME_REMOVED = 'usual.event.data.VOLUME_REMOVED', 1681 1682 /** 1683 * The external storage was unmounted. 1684 * This is a protected common event that can only be sent by system. 1685 * This API can be called only by system applications. 1686 * 1687 * @syscap SystemCapability.Notification.CommonEvent 1688 * @since 9 1689 */ 1690 COMMON_EVENT_VOLUME_UNMOUNTED = 'usual.event.data.VOLUME_UNMOUNTED', 1691 1692 /** 1693 * The external storage was mounted. 1694 * This is a protected common event that can only be sent by system. 1695 * This API can be called only by system applications. 1696 * 1697 * @syscap SystemCapability.Notification.CommonEvent 1698 * @since 9 1699 */ 1700 COMMON_EVENT_VOLUME_MOUNTED = 'usual.event.data.VOLUME_MOUNTED', 1701 1702 /** 1703 * The external storage was bad removal. 1704 * This is a protected common event that can only be sent by system. 1705 * This API can be called only by system applications. 1706 * 1707 * @syscap SystemCapability.Notification.CommonEvent 1708 * @since 9 1709 */ 1710 COMMON_EVENT_VOLUME_BAD_REMOVAL = 'usual.event.data.VOLUME_BAD_REMOVAL', 1711 1712 /** 1713 * The external storage was eject. 1714 * This is a protected common event that can only be sent by system. 1715 * This API can be called only by system applications. 1716 * 1717 * @syscap SystemCapability.Notification.CommonEvent 1718 * @since 9 1719 */ 1720 COMMON_EVENT_VOLUME_EJECT = 'usual.event.data.VOLUME_EJECT', 1721 1722 /** 1723 * The visible of account was updated. 1724 * This is a protected common event that can only be sent by system. 1725 * 1726 * @syscap SystemCapability.Notification.CommonEvent 1727 * @since 9 1728 */ 1729 COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED = 'usual.event.data.VISIBLE_ACCOUNTS_UPDATED', 1730 1731 /** 1732 * Account was deleted. 1733 * This is a protected common event that can only be sent by system. 1734 * 1735 * @syscap SystemCapability.Notification.CommonEvent 1736 * This API can be called only by system applications. 1737 * @since 9 1738 */ 1739 COMMON_EVENT_ACCOUNT_DELETED = 'usual.event.data.ACCOUNT_DELETED', 1740 1741 /** 1742 * Foundation was ready. 1743 * This is a protected common event that can only be sent by system. 1744 * 1745 * @syscap SystemCapability.Notification.CommonEvent 1746 * @since 9 1747 */ 1748 COMMON_EVENT_FOUNDATION_READY = 'common.event.FOUNDATION_READY', 1749 1750 /** 1751 * Indicates the common event Action indicating that the airplane mode status of the device changes. 1752 * Users can register this event to listen to the change of the airplane mode status of the device. 1753 * 1754 * @syscap SystemCapability.Notification.CommonEvent 1755 * @since 9 1756 */ 1757 COMMON_EVENT_AIRPLANE_MODE_CHANGED = 'usual.event.AIRPLANE_MODE', 1758 1759 /** 1760 * sent by the window manager service when the window mode is split. 1761 * 1762 * @syscap SystemCapability.Notification.CommonEvent 1763 * @since 9 1764 */ 1765 /** 1766 * sent by the window manager service when the window mode is split. 1767 * 1768 * @syscap SystemCapability.Notification.CommonEvent 1769 * @atomicservice 1770 * @since 11 1771 */ 1772 COMMON_EVENT_SPLIT_SCREEN = 'common.event.SPLIT_SCREEN', 1773 1774 /** 1775 * The notification slot has been updated. 1776 * This is a protected common event that can only be sent by system. 1777 * This API can be called only by system applications. 1778 * 1779 * @syscap SystemCapability.Notification.CommonEvent 1780 * @since 9 1781 */ 1782 COMMON_EVENT_SLOT_CHANGE = 'usual.event.SLOT_CHANGE', 1783 1784 /** 1785 * Indicate the action of a common event that the spn display information has been updated. 1786 * This common event can be triggered only by system. 1787 * 1788 * @syscap SystemCapability.Notification.CommonEvent 1789 * @since 9 1790 */ 1791 COMMON_EVENT_SPN_INFO_CHANGED = 'usual.event.SPN_INFO_CHANGED', 1792 1793 /** 1794 * Indicate the result of quick fix apply. 1795 * This common event can be triggered only by system. 1796 * 1797 * @syscap SystemCapability.Notification.CommonEvent 1798 * @since 9 1799 */ 1800 COMMON_EVENT_QUICK_FIX_APPLY_RESULT = 'usual.event.QUICK_FIX_APPLY_RESULT', 1801 1802 /** 1803 * Indicate the result of quick fix revoke. 1804 * This common event can be triggered only by system. 1805 * 1806 * @syscap SystemCapability.Notification.CommonEvent 1807 * @since 10 1808 */ 1809 COMMON_EVENT_QUICK_FIX_REVOKE_RESULT = 'usual.event.QUICK_FIX_REVOKE_RESULT', 1810 1811 /** 1812 * Indicate the action of a common event that the user information has been updated. 1813 * This common event can be triggered only by system. 1814 * 1815 * @syscap SystemCapability.Notification.CommonEvent 1816 * @since 9 1817 */ 1818 COMMON_EVENT_USER_INFO_UPDATED = 'usual.event.USER_INFO_UPDATED', 1819 1820 /** 1821 * Indicate http proxy has been changed. 1822 * This is a protected common event that can only be sent by system. 1823 * 1824 * @syscap SystemCapability.Notification.CommonEvent 1825 * @since 10 1826 */ 1827 COMMON_EVENT_HTTP_PROXY_CHANGE = 'usual.event.HTTP_PROXY_CHANGE', 1828 1829 /** 1830 * Indicates the action of a common event that the phone SIM card state has changed. 1831 * This is a protected common event that can only be sent by system. 1832 * 1833 * @syscap SystemCapability.Notification.CommonEvent 1834 * @since 10 1835 */ 1836 COMMON_EVENT_SIM_STATE_CHANGED = 'usual.event.SIM_STATE_CHANGED', 1837 1838 /** 1839 * Indicate the action of a common event that a new sms bas been received by the device. 1840 * To subscribe to this common event, your application must have the ohos.permission.RECEIVE_SMS permission. 1841 * This common event can be triggered only by system. 1842 * 1843 * @syscap SystemCapability.Notification.CommonEvent 1844 * @systemapi 1845 * @since 10 1846 */ 1847 COMMON_EVENT_SMS_RECEIVE_COMPLETED = 'usual.event.SMS_RECEIVE_COMPLETED', 1848 1849 /** 1850 * Indicate the action of a common event that a new sms emergency cell broadcast bas been received by the device. 1851 * This common event can be triggered only by system. 1852 * 1853 * @syscap SystemCapability.Notification.CommonEvent 1854 * @systemapi 1855 * @since 10 1856 */ 1857 COMMON_EVENT_SMS_EMERGENCY_CB_RECEIVE_COMPLETED = 'usual.event.SMS_EMERGENCY_CB_RECEIVE_COMPLETED', 1858 1859 /** 1860 * Indicate the action of a common event that a new sms normal cell broadcast bas been received by the device. 1861 * This common event can be triggered only by system. 1862 * 1863 * @syscap SystemCapability.Notification.CommonEvent 1864 * @systemapi 1865 * @since 10 1866 */ 1867 COMMON_EVENT_SMS_CB_RECEIVE_COMPLETED = 'usual.event.SMS_CB_RECEIVE_COMPLETED', 1868 1869 /** 1870 * Indicate the action of a common event that a STK command has been received by the device. 1871 * To subscribe to this protected common event, your application must have the ohos.permission.STK_MESSAGES_RECEIVED 1872 * permission. 1873 * This common event can be triggered only by system. 1874 * 1875 * @syscap SystemCapability.Notification.CommonEvent 1876 * @systemapi 1877 * @since 10 1878 */ 1879 COMMON_EVENT_STK_COMMAND = 'usual.event.STK_COMMAND', 1880 1881 /** 1882 * Indicate the action of a common event that STK session end. 1883 * To subscribe to this protected common event, your application must have the ohos.permission.STK_MESSAGES_RECEIVED 1884 * permission. 1885 * This common event can be triggered only by system. 1886 * 1887 * @syscap SystemCapability.Notification.CommonEvent 1888 * @systemapi 1889 * @since 10 1890 */ 1891 COMMON_EVENT_STK_SESSION_END = 'usual.event.STK_SESSION_END', 1892 1893 /** 1894 * Indicate the action of a common event that the STK phone card state has changed. 1895 * To subscribe to this protected common event, your application must have the ohos.permission.STK_MESSAGES_RECEIVED 1896 * permission. 1897 * This common event can be triggered only by system. 1898 * 1899 * @syscap SystemCapability.Notification.CommonEvent 1900 * @systemapi 1901 * @since 10 1902 */ 1903 COMMON_EVENT_STK_CARD_STATE_CHANGED = 'usual.event.STK_CARD_STATE_CHANGED', 1904 1905 /** 1906 * Indicate the action of a common event that an alpha string during call control has been received by the device. 1907 * To subscribe to this protected common event, your application must have the ohos.permission.STK_MESSAGES_RECEIVED 1908 * permission. 1909 * This common event can be triggered only by system. 1910 * 1911 * @syscap SystemCapability.Notification.CommonEvent 1912 * @systemapi 1913 * @since 10 1914 */ 1915 COMMON_EVENT_STK_ALPHA_IDENTIFIER = 'usual.event.STK_ALPHA_IDENTIFIER', 1916 1917 /** 1918 * Indicate the action of a common event that a new sms wappush has been received by the device. 1919 * This common event can be triggered only by system. 1920 * 1921 * @syscap SystemCapability.Notification.CommonEvent 1922 * @systemapi 1923 * @since 10 1924 */ 1925 COMMON_EVENT_SMS_WAPPUSH_RECEIVE_COMPLETED = 'usual.event.SMS_WAPPUSH_RECEIVE_COMPLETED', 1926 1927 /** 1928 * Indicate the action of a common event that the operator config has been updated. 1929 * This common event can be triggered only by system. 1930 * 1931 * @syscap SystemCapability.Notification.CommonEvent 1932 * @systemapi 1933 * @since 10 1934 */ 1935 COMMON_EVENT_OPERATOR_CONFIG_CHANGED = 'usual.event.OPERATOR_CONFIG_CHANGED', 1936 1937 /** 1938 * Indicates the action of a common event that the default SMS subscription has been changed. 1939 * This is a protected common event that can only be sent by system. 1940 * 1941 * @syscap SystemCapability.Notification.CommonEvent 1942 * @systemapi 1943 * @since 10 1944 */ 1945 COMMON_EVENT_SIM_CARD_DEFAULT_SMS_SUBSCRIPTION_CHANGED = 'usual.event.SIM.DEFAULT_SMS_SUBSCRIPTION_CHANGED', 1946 1947 /** 1948 * Indicates the action of a common event that the default data subscription has been changed. 1949 * This is a protected common event that can only be sent by system. 1950 * 1951 * @syscap SystemCapability.Notification.CommonEvent 1952 * @systemapi 1953 * @since 10 1954 */ 1955 COMMON_EVENT_SIM_CARD_DEFAULT_DATA_SUBSCRIPTION_CHANGED = 'usual.event.SIM.DEFAULT_DATA_SUBSCRIPTION_CHANGED', 1956 1957 /** 1958 * Indicates the action of a common event that the default main subscription has been changed. 1959 * This is a protected common event that can only be sent by system. 1960 * 1961 * @syscap SystemCapability.Notification.CommonEvent 1962 * @systemapi 1963 * @since 10 1964 */ 1965 COMMON_EVENT_SIM_CARD_DEFAULT_MAIN_SUBSCRIPTION_CHANGED = 'usual.event.SIM.DEFAULT_MAIN_SUBSCRIPTION_CHANGED', 1966 1967 /** 1968 * Indicates the action of a common event that the status of setting primary slot has been changed. 1969 * This is a protected common event that can only be sent by system. 1970 * 1971 * @syscap SystemCapability.Notification.CommonEvent 1972 * @systemapi 1973 * @since 11 1974 */ 1975 COMMON_EVENT_SET_PRIMARY_SLOT_STATUS = 'usual.event.SET_PRIMARY_SLOT_STATUS', 1976 1977 /** 1978 * Indicates the action of a common event that the roaming status of main card has been changed. 1979 * This is a protected common event that can only be sent by system. 1980 * 1981 * @syscap SystemCapability.Notification.CommonEvent 1982 * @systemapi 1983 * @since 11 1984 */ 1985 COMMON_EVENT_PRIMARY_SLOT_ROAMING = 'usual.event.PRIMARY_SLOT_ROAMING', 1986 1987 /** 1988 * Indicates the action of a common event that the default voice subscription has been changed. 1989 * This is a protected common event that can only be sent by system. 1990 * 1991 * @syscap SystemCapability.Notification.CommonEvent 1992 * @systemapi 1993 * @since 10 1994 */ 1995 COMMON_EVENT_SIM_CARD_DEFAULT_VOICE_SUBSCRIPTION_CHANGED = 'usual.event.SIM.DEFAULT_VOICE_SUBSCRIPTION_CHANGED', 1996 1997 /** 1998 * Indicates the action of a common event that the call state has been changed. 1999 * To subscribe to this protected common event, your application must have the ohos.permission.GET_TELEPHONY_STATE 2000 * permission. 2001 * This is a protected common event that can only be sent by system. 2002 * 2003 * @syscap SystemCapability.Notification.CommonEvent 2004 * @since 10 2005 */ 2006 COMMON_EVENT_CALL_STATE_CHANGED = 'usual.event.CALL_STATE_CHANGED', 2007 2008 /** 2009 * Indicates the action of a common event that the cellular data state has been changed. 2010 * This is a protected common event that can only be sent by system. 2011 * 2012 * @syscap SystemCapability.Notification.CommonEvent 2013 * @systemapi 2014 * @since 10 2015 */ 2016 COMMON_EVENT_CELLULAR_DATA_STATE_CHANGED = 'usual.event.CELLULAR_DATA_STATE_CHANGED', 2017 2018 /** 2019 * Indicates the action of a common event that the network state has been changed. 2020 * This is a protected common event that can only be sent by system. 2021 * 2022 * @syscap SystemCapability.Notification.CommonEvent 2023 * @since 10 2024 */ 2025 COMMON_EVENT_NETWORK_STATE_CHANGED = 'usual.event.NETWORK_STATE_CHANGED', 2026 2027 /** 2028 * Indicates the action of a common event that the signal info has been changed. 2029 * This is a protected common event that can only be sent by system. 2030 * 2031 * @syscap SystemCapability.Notification.CommonEvent 2032 * @since 10 2033 */ 2034 COMMON_EVENT_SIGNAL_INFO_CHANGED = 'usual.event.SIGNAL_INFO_CHANGED', 2035 2036 /** 2037 * Indicates the action of a common event that the incoming call has been missed. 2038 * To subscribe to this protected common event, your application must have the ohos.permission.GET_TELEPHONY_STATE 2039 * permission. 2040 * This is a protected common event that can only be sent by system. 2041 * 2042 * @syscap SystemCapability.Notification.CommonEvent 2043 * @systemapi 2044 * @since 10 2045 */ 2046 COMMON_EVENT_INCOMING_CALL_MISSED = 'usual.event.INCOMING_CALL_MISSED', 2047 2048 /** 2049 * Indicates the action of a common event that radio state change. 2050 * This is a protected common event that can only be sent by system. 2051 * 2052 * @syscap SystemCapability.Notification.CommonEvent 2053 * @systemapi 2054 * @since 10 2055 */ 2056 COMMON_EVENT_RADIO_STATE_CHANGE = 'usual.event.RADIO_STATE_CHANGE', 2057 2058 /** 2059 * Indicate the action of a common event that domain account status has been changed. 2060 * To subscribe to this protected common event, your application must have the ohos.permission.GET_LOCAL_ACCOUNTS 2061 * 2062 * @syscap SystemCapability.Notification.CommonEvent 2063 * @systemapi 2064 * @since 10 2065 */ 2066 COMMON_EVENT_DOMAIN_ACCOUNT_STATUS_CHANGED = 'usual.event.DOMAIN_ACCOUNT_STATUS_CHANGED', 2067 2068 /** 2069 * This commonEvent means when the screen is unlocked. 2070 * 2071 * @syscap SystemCapability.Notification.CommonEvent 2072 * @since 10 2073 */ 2074 /** 2075 * This commonEvent means when the screen is unlocked. 2076 * 2077 * @syscap SystemCapability.Notification.CommonEvent 2078 * @atomicservice 2079 * @since 11 2080 */ 2081 COMMON_EVENT_SCREEN_UNLOCKED = 'usual.event.SCREEN_UNLOCKED', 2082 2083 /** 2084 * This commonEvent means when the screen is locked. 2085 * 2086 * @syscap SystemCapability.Notification.CommonEvent 2087 * @since 10 2088 */ 2089 /** 2090 * This commonEvent means when the screen is locked. 2091 * 2092 * @syscap SystemCapability.Notification.CommonEvent 2093 * @atomicservice 2094 * @since 11 2095 */ 2096 COMMON_EVENT_SCREEN_LOCKED = 'usual.event.SCREEN_LOCKED', 2097 2098 /** 2099 * Indicates the action of a common event that the network connectivity changed. 2100 * This is a protected common event that can only be sent by system. 2101 * 2102 * @syscap SystemCapability.Notification.CommonEvent 2103 * @since 10 2104 */ 2105 /** 2106 * Indicates the action of a common event that the network connectivity changed. 2107 * This is a protected common event that can only be sent by system. 2108 * 2109 * @syscap SystemCapability.Notification.CommonEvent 2110 * @atomicservice 2111 * @since 11 2112 */ 2113 COMMON_EVENT_CONNECTIVITY_CHANGE = 'usual.event.CONNECTIVITY_CHANGE', 2114 2115 /** 2116 * Indicates the action of a common event that special number has been entered by dialer 2117 * This is a protected common event that can only be sent by system. 2118 * 2119 * @syscap SystemCapability.Notification.CommonEvent 2120 * @systemapi 2121 * @since 10 2122 */ 2123 COMMON_EVENT_SPECIAL_CODE = 'common.event.SPECIAL_CODE', 2124 2125 /** 2126 * Indicates the action of a common event that audio quality change. 2127 * This is a protected common event that can only be sent by system. 2128 * 2129 * @syscap SystemCapability.Notification.CommonEvent 2130 * @systemapi 2131 * @since 10 2132 */ 2133 COMMON_EVENT_AUDIO_QUALITY_CHANGE = 'usual.event.AUDIO_QUALITY_CHANGE', 2134 2135 /** 2136 * Indicates that the privacy status is changed. 2137 * This is a protected common event that can only be sent by system. 2138 * 2139 * @syscap SystemCapability.Notification.CommonEvent 2140 * @systemapi 2141 * @since 11 2142 */ 2143 COMMON_EVENT_PRIVACY_STATE_CHANGED = 'usual.event.PRIVACY_STATE_CHANGED', 2144 2145 /** 2146 * This commonEvent means when a new application package start to install on the device. 2147 * This is a protected common event that can only be sent by system. 2148 * 2149 * @syscap SystemCapability.Notification.CommonEvent 2150 * @systemapi 2151 * @since 12 2152 */ 2153 COMMON_EVENT_PACKAGE_INSTALLATION_STARTED = 'usual.event.PACKAGE_INSTALLATION_STARTED', 2154 2155 /** 2156 * This common event means an application package enables or disables a dynamic icon. 2157 * This is a protected common event that can only be sent by system. 2158 * 2159 * @syscap SystemCapability.Notification.CommonEvent 2160 * @systemapi 2161 * @since 12 2162 */ 2163 COMMON_EVENT_DYNAMIC_ICON_CHANGED = 'usual.event.DYNAMIC_ICON_CHANGED', 2164 2165 /** 2166 * This common event means that minors mode is enabled. 2167 * This is a protected common event that can only be sent by system. 2168 * 2169 * @syscap SystemCapability.Notification.CommonEvent 2170 * @atomicservice 2171 * @since 12 2172 */ 2173 COMMON_EVENT_MINORSMODE_ON = 'usual.event.MINORSMODE_ON', 2174 2175 /** 2176 * This common event means that minors mode is disabled. 2177 * This is a protected common event that can only be sent by system. 2178 * 2179 * @syscap SystemCapability.Notification.CommonEvent 2180 * @atomicservice 2181 * @since 12 2182 */ 2183 COMMON_EVENT_MINORSMODE_OFF = 'usual.event.MINORSMODE_OFF', 2184 2185 /** 2186 * This common event means that datashare is ready. 2187 * This is a protected common event that can only be sent by system. 2188 * 2189 * @syscap SystemCapability.Notification.CommonEvent 2190 * @atomicservice 2191 * @since 12 2192 */ 2193 COMMON_EVENT_DATA_SHARE_READY = 'usual.event.DATA_SHARE_READY', 2194 2195 /** 2196 * This common event means that vpn connection status has been changed. 2197 * This is a protected common event that can only be sent by system. 2198 * 2199 * @syscap SystemCapability.Notification.CommonEvent 2200 * @systemapi 2201 * @since 12 2202 */ 2203 COMMON_EVENT_VPN_CONNECTION_STATUS_CHANGED = 'usual.event.VPN_CONNECTION_STATUS_CHANGED', 2204 2205 /** 2206 * Indicates that an application begins to restored. 2207 * To subscribe to this common event, your application must have the ohos.permission.START_RESTORE_NOTIFICATION 2208 * permission. 2209 * This is a protected common event that can only be sent by system. 2210 * 2211 * @syscap SystemCapability.Notification.CommonEvent 2212 * @systemapi 2213 * @since 13 2214 */ 2215 COMMON_EVENT_RESTORE_START = 'usual.event.RESTORE_START', 2216 } 2217 2218 /** 2219 * Describes the data of the common event 2220 * 2221 * @syscap SystemCapability.Notification.CommonEvent 2222 * @since 10 2223 */ 2224 /** 2225 * Describes the data of the common event 2226 * 2227 * @typedef { _CommonEventData } CommonEventData 2228 * @syscap SystemCapability.Notification.CommonEvent 2229 * @atomicservice 2230 * @since 11 2231 */ 2232 export type CommonEventData = _CommonEventData; 2233 2234 /** 2235 * Describes the subscriber of common event 2236 * 2237 * @syscap SystemCapability.Notification.CommonEvent 2238 * @since 10 2239 */ 2240 /** 2241 * Describes the subscriber of common event 2242 * 2243 * @typedef { _CommonEventSubscriber } CommonEventSubscriber 2244 * @syscap SystemCapability.Notification.CommonEvent 2245 * @atomicservice 2246 * @since 11 2247 */ 2248 export type CommonEventSubscriber = _CommonEventSubscriber; 2249 2250 /** 2251 * Describes the information of the subscriber 2252 * 2253 * @syscap SystemCapability.Notification.CommonEvent 2254 * @since 10 2255 */ 2256 /** 2257 * Describes the information of the subscriber 2258 * 2259 * @typedef { _CommonEventSubscribeInfo } CommonEventSubscribeInfo 2260 * @syscap SystemCapability.Notification.CommonEvent 2261 * @atomicservice 2262 * @since 11 2263 */ 2264 export type CommonEventSubscribeInfo = _CommonEventSubscribeInfo; 2265 2266 /** 2267 * Describes the information of the subscriber 2268 * 2269 * @syscap SystemCapability.Notification.CommonEvent 2270 * @since 10 2271 */ 2272 /** 2273 * Describes the information of the subscriber 2274 * 2275 * @syscap SystemCapability.Notification.CommonEvent 2276 * @atomicservice 2277 * @since 11 2278 */ 2279 /** 2280 * Describes the information of the subscriber 2281 * 2282 * @typedef { _CommonEventPublishData } CommonEventPublishData 2283 * @syscap SystemCapability.Notification.CommonEvent 2284 * @crossplatform 2285 * @atomicservice 2286 * @since 12 2287 */ 2288 export type CommonEventPublishData = _CommonEventPublishData; 2289} 2290 2291export default commonEventManager; 2292