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