• 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 } 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 device is about to enter the hibernate mode
538     *
539     * @syscap SystemCapability.Notification.CommonEvent
540     * @since 15
541     */
542    COMMON_EVENT_ENTER_HIBERNATE = 'usual.event.ENTER_HIBERNATE',
543
544    /**
545     * This commonEvent means when the device exits the hibernate mode
546     *
547     * @syscap SystemCapability.Notification.CommonEvent
548     * @since 15
549     */
550    COMMON_EVENT_EXIT_HIBERNATE = 'usual.event.EXIT_HIBERNATE',
551
552    /**
553     * This commonEvent means when the user is present after the device is awakened.
554     *
555     * @syscap SystemCapability.Notification.CommonEvent
556     * @since 9
557     * @deprecated since 10
558     */
559    COMMON_EVENT_USER_PRESENT = 'usual.event.USER_PRESENT',
560
561    /**
562     * This commonEvent means when the current time is changed.
563     *
564     * @syscap SystemCapability.Notification.CommonEvent
565     * @since 9
566     */
567    COMMON_EVENT_TIME_TICK = 'usual.event.TIME_TICK',
568
569    /**
570     * This commonEvent means when the time is set.
571     *
572     * @syscap SystemCapability.Notification.CommonEvent
573     * @since 9
574     */
575    COMMON_EVENT_TIME_CHANGED = 'usual.event.TIME_CHANGED',
576
577    /**
578     * This commonEvent means when the current date is changed.
579     *
580     * @syscap SystemCapability.Notification.CommonEvent
581     * @since 9
582     */
583    COMMON_EVENT_DATE_CHANGED = 'usual.event.DATE_CHANGED',
584
585    /**
586     * This commonEvent means when the time zone is changed.
587     *
588     * @syscap SystemCapability.Notification.CommonEvent
589     * @since 9
590     */
591    COMMON_EVENT_TIMEZONE_CHANGED = 'usual.event.TIMEZONE_CHANGED',
592
593    /**
594     * This commonEvent means when the dialog to dismiss.
595     *
596     * @syscap SystemCapability.Notification.CommonEvent
597     * @since 9
598     */
599    COMMON_EVENT_CLOSE_SYSTEM_DIALOGS = 'usual.event.CLOSE_SYSTEM_DIALOGS',
600
601    /**
602     * This commonEvent means when a new application package is installed on the device.
603     *
604     * @syscap SystemCapability.Notification.CommonEvent
605     * @since 9
606     */
607    COMMON_EVENT_PACKAGE_ADDED = 'usual.event.PACKAGE_ADDED',
608
609    /**
610     * This commonEvent means when a new version application package is installed on the device and
611     * replace the old version.the data contains the name of the package.
612     *
613     * @syscap SystemCapability.Notification.CommonEvent
614     * @since 9
615     */
616    COMMON_EVENT_PACKAGE_REPLACED = 'usual.event.PACKAGE_REPLACED',
617
618    /**
619     * This commonEvent means when a new version application package is installed on the device and
620     * replace the old version, it does not contain additional data and only be sent to the replaced application.
621     *
622     * @syscap SystemCapability.Notification.CommonEvent
623     * @since 9
624     */
625    COMMON_EVENT_MY_PACKAGE_REPLACED = 'usual.event.MY_PACKAGE_REPLACED',
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_PACKAGE_REMOVED = 'usual.event.PACKAGE_REMOVED',
634
635    /**
636     * This commonEvent means when an existing application package is removed from the device.
637     *
638     * @syscap SystemCapability.Notification.CommonEvent
639     * @since 9
640     */
641    COMMON_EVENT_BUNDLE_REMOVED = 'usual.event.BUNDLE_REMOVED',
642
643    /**
644     * This commonEvent means when an existing application package is completely removed from the device.
645     *
646     * @syscap SystemCapability.Notification.CommonEvent
647     * @since 9
648     */
649    COMMON_EVENT_PACKAGE_FULLY_REMOVED = 'usual.event.PACKAGE_FULLY_REMOVED',
650
651    /**
652     * This commonEvent means when an existing application package has been changed.
653     *
654     * @syscap SystemCapability.Notification.CommonEvent
655     * @since 9
656     */
657    COMMON_EVENT_PACKAGE_CHANGED = 'usual.event.PACKAGE_CHANGED',
658
659    /**
660     * This commonEvent means the user has restarted a package, and all of its processes have been killed.
661     *
662     * @syscap SystemCapability.Notification.CommonEvent
663     * @since 9
664     */
665    COMMON_EVENT_PACKAGE_RESTARTED = 'usual.event.PACKAGE_RESTARTED',
666
667    /**
668     * This commonEvent means the user has cleared the package data.
669     *
670     * @syscap SystemCapability.Notification.CommonEvent
671     * @since 9
672     */
673    COMMON_EVENT_PACKAGE_DATA_CLEARED = 'usual.event.PACKAGE_DATA_CLEARED',
674
675    /**
676     * This commonEvent means the user has cleared the package cache.
677     *
678     * @syscap SystemCapability.Notification.CommonEvent
679     * @since 9
680     */
681    COMMON_EVENT_PACKAGE_CACHE_CLEARED = 'usual.event.PACKAGE_CACHE_CLEARED',
682
683    /**
684     * This commonEvent means the packages have been suspended.
685     *
686     * @syscap SystemCapability.Notification.CommonEvent
687     * @since 9
688     */
689    COMMON_EVENT_PACKAGES_SUSPENDED = 'usual.event.PACKAGES_SUSPENDED',
690
691    /**
692     * This commonEvent means the packages have been un-suspended.
693     *
694     * @syscap SystemCapability.Notification.CommonEvent
695     * @since 9
696     */
697    COMMON_EVENT_PACKAGES_UNSUSPENDED = 'usual.event.PACKAGES_UNSUSPENDED',
698
699    /**
700     * This commonEvent Sent to a package that has been suspended by the system.
701     *
702     * @syscap SystemCapability.Notification.CommonEvent
703     * @since 9
704     */
705    COMMON_EVENT_MY_PACKAGE_SUSPENDED = 'usual.event.MY_PACKAGE_SUSPENDED',
706
707    /**
708     * Sent to a package that has been un-suspended.
709     *
710     * @syscap SystemCapability.Notification.CommonEvent
711     * @since 9
712     */
713    COMMON_EVENT_MY_PACKAGE_UNSUSPENDED = 'usual.event.MY_PACKAGE_UNSUSPENDED',
714
715    /**
716     * A user id has been removed from the system.
717     *
718     * @syscap SystemCapability.Notification.CommonEvent
719     * @since 9
720     */
721    COMMON_EVENT_UID_REMOVED = 'usual.event.UID_REMOVED',
722
723    /**
724     * The application is first launched after installed.
725     *
726     * @syscap SystemCapability.Notification.CommonEvent
727     * @since 9
728     */
729    COMMON_EVENT_PACKAGE_FIRST_LAUNCH = 'usual.event.PACKAGE_FIRST_LAUNCH',
730
731    /**
732     * Sent by system package verifier when a package need to be verified.
733     *
734     * @syscap SystemCapability.Notification.CommonEvent
735     * @since 9
736     */
737    COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION = 'usual.event.PACKAGE_NEEDS_VERIFICATION',
738
739    /**
740     * Sent by system package verifier when a package is verified.
741     *
742     * @syscap SystemCapability.Notification.CommonEvent
743     * @since 9
744     */
745    COMMON_EVENT_PACKAGE_VERIFIED = 'usual.event.PACKAGE_VERIFIED',
746
747    /**
748     * Resources for a set of packages (which were previously unavailable) are currently
749     * available since the media on which they exist is available.
750     *
751     * @syscap SystemCapability.Notification.CommonEvent
752     * @since 9
753     */
754    COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE = 'usual.event.EXTERNAL_APPLICATIONS_AVAILABLE',
755
756    /**
757     * Resources for a set of packages are currently unavailable since the media on which they exist is unavailable.
758     *
759     * @syscap SystemCapability.Notification.CommonEvent
760     * @since 9
761     */
762    COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE = 'usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE',
763
764    /**
765     * The device configuration such as orientation,locale have been changed.
766     *
767     * @syscap SystemCapability.Notification.CommonEvent
768     * @since 9
769     */
770    COMMON_EVENT_CONFIGURATION_CHANGED = 'usual.event.CONFIGURATION_CHANGED',
771
772    /**
773     * The current device's locale has changed.
774     *
775     * @syscap SystemCapability.Notification.CommonEvent
776     * @since 9
777     */
778    COMMON_EVENT_LOCALE_CHANGED = 'usual.event.LOCALE_CHANGED',
779
780    /**
781     *  Indicates low memory condition notification acknowledged by user and package management should be started.
782     *
783     * @syscap SystemCapability.Notification.CommonEvent
784     * @since 9
785     */
786    COMMON_EVENT_MANAGE_PACKAGE_STORAGE = 'usual.event.MANAGE_PACKAGE_STORAGE',
787
788    /**
789     * Send by the smart function when the system in drive mode.
790     *
791     * @syscap SystemCapability.Notification.CommonEvent
792     * @since 9
793     */
794    COMMON_EVENT_DRIVE_MODE = 'common.event.DRIVE_MODE',
795
796    /**
797     * Send by the smart function when the system in home mode.
798     *
799     * @syscap SystemCapability.Notification.CommonEvent
800     * @since 9
801     */
802    COMMON_EVENT_HOME_MODE = 'common.event.HOME_MODE',
803
804    /**
805     * Send by the smart function when the system in office mode.
806     *
807     * @syscap SystemCapability.Notification.CommonEvent
808     * @since 9
809     */
810    COMMON_EVENT_OFFICE_MODE = 'common.event.OFFICE_MODE',
811
812    /**
813     * Remind new user of preparing to start.
814     *
815     * @syscap SystemCapability.Notification.CommonEvent
816     * @since 9
817     */
818    COMMON_EVENT_USER_STARTED = 'usual.event.USER_STARTED',
819
820    /**
821     * Remind previous user of that the service has been the background.
822     *
823     * @syscap SystemCapability.Notification.CommonEvent
824     * @since 9
825     */
826    COMMON_EVENT_USER_BACKGROUND = 'usual.event.USER_BACKGROUND',
827
828    /**
829     * Remind new user of that the service has been the foreground.
830     *
831     * @syscap SystemCapability.Notification.CommonEvent
832     * @since 9
833     */
834    COMMON_EVENT_USER_FOREGROUND = 'usual.event.USER_FOREGROUND',
835
836    /**
837     * Remind new user of that the service has been switched to new user.
838     *
839     * @syscap SystemCapability.Notification.CommonEvent
840     * This API can be called only by system applications.
841     * @since 9
842     */
843    COMMON_EVENT_USER_SWITCHED = 'usual.event.USER_SWITCHED',
844
845    /**
846     * Remind new user of that the service has been starting.
847     *
848     * @syscap SystemCapability.Notification.CommonEvent
849     * This API can be called only by system applications.
850     * @since 9
851     */
852    COMMON_EVENT_USER_STARTING = 'usual.event.USER_STARTING',
853
854    /**
855     * Remind new user of that the service has been unlocked.
856     *
857     * @syscap SystemCapability.Notification.CommonEvent
858     * @since 9
859     */
860    COMMON_EVENT_USER_UNLOCKED = 'usual.event.USER_UNLOCKED',
861
862    /**
863     * Remind new user of that the service has been stopping.
864     *
865     * @syscap SystemCapability.Notification.CommonEvent
866     * This API can be called only by system applications.
867     * @since 9
868     */
869    COMMON_EVENT_USER_STOPPING = 'usual.event.USER_STOPPING',
870
871    /**
872     * Remind new user of that the service has stopped.
873     *
874     * @syscap SystemCapability.Notification.CommonEvent
875     * @since 9
876     */
877    COMMON_EVENT_USER_STOPPED = 'usual.event.USER_STOPPED',
878
879    /**
880     * Distributed account login successfully.
881     *
882     * @syscap SystemCapability.Notification.CommonEvent
883     * @since 9
884     */
885    /**
886     * Distributed account login successfully.
887     *
888     * @syscap SystemCapability.Notification.CommonEvent
889     * @atomicservice
890     * @since 12
891     */
892    COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN = 'common.event.DISTRIBUTED_ACCOUNT_LOGIN',
893
894    /**
895     * Distributed account logout successfully.
896     *
897     * @syscap SystemCapability.Notification.CommonEvent
898     * @since 9
899     */
900    /**
901     * Distributed account logout successfully.
902     *
903     * @syscap SystemCapability.Notification.CommonEvent
904     * @atomicservice
905     * @since 12
906     */
907    COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT = 'common.event.DISTRIBUTED_ACCOUNT_LOGOUT',
908
909    /**
910     * Distributed account is invalid.
911     *
912     * @syscap SystemCapability.Notification.CommonEvent
913     * @since 9
914     */
915    /**
916     * Distributed account is invalid.
917     *
918     * @syscap SystemCapability.Notification.CommonEvent
919     * @atomicservice
920     * @since 12
921     */
922    COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID = 'common.event.DISTRIBUTED_ACCOUNT_TOKEN_INVALID',
923
924    /**
925     * Distributed account logs off.
926     *
927     * @syscap SystemCapability.Notification.CommonEvent
928     * @since 9
929     */
930    /**
931     * Distributed account logs off.
932     *
933     * @syscap SystemCapability.Notification.CommonEvent
934     * @atomicservice
935     * @since 12
936     */
937    COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF = 'common.event.DISTRIBUTED_ACCOUNT_LOGOFF',
938
939    /**
940     * WIFI state.
941     *
942     * @syscap SystemCapability.Notification.CommonEvent
943     * @since 9
944     */
945    COMMON_EVENT_WIFI_POWER_STATE = 'usual.event.wifi.POWER_STATE',
946
947    /**
948     * WIFI scan results.
949     *
950     * @syscap SystemCapability.Notification.CommonEvent
951     * @since 9
952     */
953    COMMON_EVENT_WIFI_SCAN_FINISHED = 'usual.event.wifi.SCAN_FINISHED',
954
955    /**
956     * WIFI RSSI change.
957     *
958     * @syscap SystemCapability.Notification.CommonEvent
959     * @since 9
960     */
961    COMMON_EVENT_WIFI_RSSI_VALUE = 'usual.event.wifi.RSSI_VALUE',
962
963    /**
964     * WIFI connect state.
965     *
966     * @syscap SystemCapability.Notification.CommonEvent
967     * @since 9
968     */
969    COMMON_EVENT_WIFI_CONN_STATE = 'usual.event.wifi.CONN_STATE',
970
971    /**
972     * WIFI hotspot state.
973     *
974     * @syscap SystemCapability.Notification.CommonEvent
975     * @since 9
976     */
977    COMMON_EVENT_WIFI_HOTSPOT_STATE = 'usual.event.wifi.HOTSPOT_STATE',
978
979    /**
980     * WIFI ap sta join.
981     *
982     * @syscap SystemCapability.Notification.CommonEvent
983     * @since 9
984     */
985    COMMON_EVENT_WIFI_AP_STA_JOIN = 'usual.event.wifi.WIFI_HS_STA_JOIN',
986
987    /**
988     * WIFI ap sta join.
989     *
990     * @syscap SystemCapability.Notification.CommonEvent
991     * @since 9
992     */
993    COMMON_EVENT_WIFI_AP_STA_LEAVE = 'usual.event.wifi.WIFI_HS_STA_LEAVE',
994
995    /**
996     * Indicates Wi-Fi MpLink state notification acknowledged by binding or unbinding MpLink.
997     *
998     * @syscap SystemCapability.Notification.CommonEvent
999     * @since 9
1000     */
1001    COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE = 'usual.event.wifi.mplink.STATE_CHANGE',
1002
1003    /**
1004     * Indicates Wi-Fi P2P connection state notification acknowledged by connecting or disconnected P2P.
1005     *
1006     * @syscap SystemCapability.Notification.CommonEvent
1007     * @since 9
1008     */
1009    COMMON_EVENT_WIFI_P2P_CONN_STATE = 'usual.event.wifi.p2p.CONN_STATE_CHANGE',
1010
1011    /**
1012     * Indicates that the Wi-Fi P2P state change.
1013     *
1014     * @syscap SystemCapability.Notification.CommonEvent
1015     * @since 9
1016     */
1017    COMMON_EVENT_WIFI_P2P_STATE_CHANGED = 'usual.event.wifi.p2p.STATE_CHANGE',
1018
1019    /**
1020     * Indicates that the Wi-Fi P2P peers state change.
1021     *
1022     * @syscap SystemCapability.Notification.CommonEvent
1023     * @since 9
1024     */
1025    COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED = 'usual.event.wifi.p2p.DEVICES_CHANGE',
1026
1027    /**
1028     * Indicates that the Wi-Fi P2P discovery state change.
1029     *
1030     * @syscap SystemCapability.Notification.CommonEvent
1031     * @since 9
1032     */
1033    COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED = 'usual.event.wifi.p2p.PEER_DISCOVERY_STATE_CHANGE',
1034
1035    /**
1036     * Indicates that the Wi-Fi P2P current device state change.
1037     *
1038     * @syscap SystemCapability.Notification.CommonEvent
1039     * @since 9
1040     */
1041    COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED = 'usual.event.wifi.p2p.CURRENT_DEVICE_CHANGE',
1042
1043    /**
1044     * Indicates that the Wi-Fi P2P group info is changed.
1045     *
1046     * @syscap SystemCapability.Notification.CommonEvent
1047     * @since 9
1048     */
1049    COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED = 'usual.event.wifi.p2p.GROUP_STATE_CHANGED',
1050
1051    /**
1052     * Bluetooth.handsfree.ag.connect.state.update.
1053     *
1054     * @syscap SystemCapability.Notification.CommonEvent
1055     * @since 9
1056     */
1057    COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE',
1058
1059    /**
1060     * Bluetooth.handsfree.ag.current.device.update.
1061     *
1062     * @syscap SystemCapability.Notification.CommonEvent
1063     * @since 9
1064     */
1065    COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE = 'usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE',
1066
1067    /**
1068     * Bluetooth.handsfree.ag.audio.state.update.
1069     *
1070     * @syscap SystemCapability.Notification.CommonEvent
1071     * @since 9
1072     */
1073    COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE = 'usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE',
1074
1075    /**
1076     * Bluetooth.a2dpsource.connect.state.update.
1077     *
1078     * @syscap SystemCapability.Notification.CommonEvent
1079     * @since 9
1080     */
1081    COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE',
1082
1083    /**
1084     * Bluetooth.a2dpsource.current.device.update.
1085     *
1086     * @syscap SystemCapability.Notification.CommonEvent
1087     * @since 9
1088     */
1089    COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE = 'usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE',
1090
1091    /**
1092     * Bluetooth.a2dpsource.playing.state.update.
1093     *
1094     * @syscap SystemCapability.Notification.CommonEvent
1095     * @since 9
1096     */
1097    COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE = 'usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE',
1098
1099    /**
1100     * Bluetooth.a2dpsource.avrcp.connect.state.update.
1101     *
1102     * @syscap SystemCapability.Notification.CommonEvent
1103     * @since 9
1104     */
1105    COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE',
1106
1107    /**
1108     * Bluetooth.a2dpsource.codec.value.update.
1109     *
1110     * @syscap SystemCapability.Notification.CommonEvent
1111     * @since 9
1112     */
1113    COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE = 'usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE',
1114
1115    /**
1116     * Bluetooth.remotedevice.discovered.
1117     *
1118     * @syscap SystemCapability.Notification.CommonEvent
1119     * @since 9
1120     */
1121    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED = 'usual.event.bluetooth.remotedevice.DISCOVERED',
1122
1123    /**
1124     * Bluetooth.remotedevice.class.value.update.
1125     *
1126     * @syscap SystemCapability.Notification.CommonEvent
1127     * @since 9
1128     */
1129    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE = 'usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE',
1130
1131    /**
1132     * Bluetooth.remotedevice.acl.connected.
1133     *
1134     * @syscap SystemCapability.Notification.CommonEvent
1135     * @since 9
1136     */
1137    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED = 'usual.event.bluetooth.remotedevice.ACL_CONNECTED',
1138
1139    /**
1140     * Bluetooth.remotedevice.acl.disconnected.
1141     *
1142     * @syscap SystemCapability.Notification.CommonEvent
1143     * @since 9
1144     */
1145    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED = 'usual.event.bluetooth.remotedevice.ACL_DISCONNECTED',
1146
1147    /**
1148     * Bluetooth.remotedevice.name.update.
1149     *
1150     * @syscap SystemCapability.Notification.CommonEvent
1151     * @since 9
1152     */
1153    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE = 'usual.event.bluetooth.remotedevice.NAME_UPDATE',
1154
1155    /**
1156     * Bluetooth.remotedevice.pair.state.
1157     *
1158     * @syscap SystemCapability.Notification.CommonEvent
1159     * @since 9
1160     */
1161    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE = 'usual.event.bluetooth.remotedevice.PAIR_STATE',
1162
1163    /**
1164     * Bluetooth.remotedevice.battery.value.update.
1165     *
1166     * @syscap SystemCapability.Notification.CommonEvent
1167     * @since 9
1168     */
1169    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE = 'usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE',
1170
1171    /**
1172     * Bluetooth.remotedevice.sdp.result.
1173     *
1174     * @syscap SystemCapability.Notification.CommonEvent
1175     * @since 9
1176     */
1177    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT = 'usual.event.bluetooth.remotedevice.SDP_RESULT',
1178
1179    /**
1180     * Bluetooth.remotedevice.uuid.value.
1181     *
1182     * @syscap SystemCapability.Notification.CommonEvent
1183     * @since 9
1184     */
1185    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE = 'usual.event.bluetooth.remotedevice.UUID_VALUE',
1186
1187    /**
1188     * Bluetooth.remotedevice.pairing.req.
1189     *
1190     * @syscap SystemCapability.Notification.CommonEvent
1191     * @since 9
1192     */
1193    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ = 'usual.event.bluetooth.remotedevice.PAIRING_REQ',
1194
1195    /**
1196     * Bluetooth.remotedevice.pairing.cancel.
1197     *
1198     * @syscap SystemCapability.Notification.CommonEvent
1199     * @since 9
1200     */
1201    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL = 'usual.event.bluetooth.remotedevice.PAIRING_CANCEL',
1202
1203    /**
1204     * Bluetooth.remotedevice.connect.req.
1205     *
1206     * @syscap SystemCapability.Notification.CommonEvent
1207     * @since 9
1208     */
1209    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ = 'usual.event.bluetooth.remotedevice.CONNECT_REQ',
1210
1211    /**
1212     * Bluetooth.remotedevice.connect.reply.
1213     *
1214     * @syscap SystemCapability.Notification.CommonEvent
1215     * @since 9
1216     */
1217    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY = 'usual.event.bluetooth.remotedevice.CONNECT_REPLY',
1218
1219    /**
1220     * Bluetooth.remotedevice.connect.cancel.
1221     *
1222     * @syscap SystemCapability.Notification.CommonEvent
1223     * @since 9
1224     */
1225    COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL = 'usual.event.bluetooth.remotedevice.CONNECT_CANCEL',
1226
1227    /**
1228     * Bluetooth.handsfreeunit.connect.state.update.
1229     *
1230     * @syscap SystemCapability.Notification.CommonEvent
1231     * @since 9
1232     */
1233    COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE',
1234
1235    /**
1236     * Bluetooth.handsfreeunit.audio.state.update.
1237     *
1238     * @syscap SystemCapability.Notification.CommonEvent
1239     * @since 9
1240     */
1241    COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE = 'usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE',
1242
1243    /**
1244     * Bluetooth.handsfreeunit.ag.common.event.
1245     *
1246     * @syscap SystemCapability.Notification.CommonEvent
1247     * @since 9
1248     */
1249    COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT = 'usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT',
1250
1251    /**
1252     * Bluetooth.handsfreeunit.ag.call.state.update.
1253     *
1254     * @syscap SystemCapability.Notification.CommonEvent
1255     * @since 9
1256     */
1257    COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE = 'usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE',
1258
1259    /**
1260     * Bluetooth.host.state.update.
1261     *
1262     * @syscap SystemCapability.Notification.CommonEvent
1263     * @since 9
1264     */
1265    COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE = 'usual.event.bluetooth.host.STATE_UPDATE',
1266
1267    /**
1268     * Bluetooth.host.req.discoverable.
1269     *
1270     * @syscap SystemCapability.Notification.CommonEvent
1271     * @since 9
1272     */
1273    COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE = 'usual.event.bluetooth.host.REQ_DISCOVERABLE',
1274
1275    /**
1276     * Bluetooth.host.req.enable.
1277     *
1278     * @syscap SystemCapability.Notification.CommonEvent
1279     * @since 9
1280     */
1281    COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE = 'usual.event.bluetooth.host.REQ_ENABLE',
1282
1283    /**
1284     * Bluetooth.host.req.disable.
1285     *
1286     * @syscap SystemCapability.Notification.CommonEvent
1287     * @since 9
1288     */
1289    COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE = 'usual.event.bluetooth.host.REQ_DISABLE',
1290
1291    /**
1292     * Bluetooth.host.scan.mode.update.
1293     *
1294     * @syscap SystemCapability.Notification.CommonEvent
1295     * @since 9
1296     */
1297    COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE = 'usual.event.bluetooth.host.SCAN_MODE_UPDATE',
1298
1299    /**
1300     * Bluetooth.host.discovery.stated.
1301     *
1302     * @syscap SystemCapability.Notification.CommonEvent
1303     * @since 9
1304     */
1305    COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED = 'usual.event.bluetooth.host.DISCOVERY_STARTED',
1306
1307    /**
1308     * Bluetooth.host.discovery.finished.
1309     *
1310     * @syscap SystemCapability.Notification.CommonEvent
1311     * @since 9
1312     */
1313    COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED = 'usual.event.bluetooth.host.DISCOVERY_FINISHED',
1314
1315    /**
1316     * Bluetooth.host.name.update.
1317     *
1318     * @syscap SystemCapability.Notification.CommonEvent
1319     * @since 9
1320     */
1321    COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE = 'usual.event.bluetooth.host.NAME_UPDATE',
1322
1323    /**
1324     * Bluetooth.a2dp.connect.state.update.
1325     *
1326     * @syscap SystemCapability.Notification.CommonEvent
1327     * @since 9
1328     */
1329    COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE',
1330
1331    /**
1332     * Bluetooth.a2dp.playing.state.update.
1333     *
1334     * @syscap SystemCapability.Notification.CommonEvent
1335     * @since 9
1336     */
1337    COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE = 'usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE',
1338
1339    /**
1340     * Bluetooth.a2dp.audio.state.update.
1341     *
1342     * @syscap SystemCapability.Notification.CommonEvent
1343     * @since 9
1344     */
1345    COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE = 'usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE',
1346
1347    /**
1348     * Nfc state change.
1349     *
1350     * @syscap SystemCapability.Notification.CommonEvent
1351     * @since 9
1352     */
1353    COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED = 'usual.event.nfc.action.ADAPTER_STATE_CHANGED',
1354
1355    /**
1356     * Nfc field on detected.
1357     *
1358     * @syscap SystemCapability.Notification.CommonEvent
1359     * @since 9
1360     */
1361    COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED = 'usual.event.nfc.action.RF_FIELD_ON_DETECTED',
1362
1363    /**
1364     * Nfc field off detected.
1365     *
1366     * @syscap SystemCapability.Notification.CommonEvent
1367     * @since 9
1368     */
1369    COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED = 'usual.event.nfc.action.RF_FIELD_OFF_DETECTED',
1370
1371    /**
1372     * Sent when stop charging battery.
1373     *
1374     * @syscap SystemCapability.Notification.CommonEvent
1375     * @since 9
1376     */
1377    COMMON_EVENT_DISCHARGING = 'usual.event.DISCHARGING',
1378
1379    /**
1380     * Sent when start charging battery.
1381     *
1382     * @syscap SystemCapability.Notification.CommonEvent
1383     * @since 9
1384     */
1385    COMMON_EVENT_CHARGING = 'usual.event.CHARGING',
1386
1387    /**
1388     * Sent when charge type changed.
1389     *
1390     * @syscap SystemCapability.Notification.CommonEvent
1391     * @systemapi
1392     * @since 10
1393     */
1394    COMMON_EVENT_CHARGE_TYPE_CHANGED = 'usual.event.CHARGE_TYPE_CHANGED',
1395
1396    /**
1397     * Sent when device's idle mode changed
1398     *
1399     * @syscap SystemCapability.Notification.CommonEvent
1400     * @since 9
1401     */
1402    COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED = 'usual.event.DEVICE_IDLE_MODE_CHANGED',
1403
1404    /**
1405     * Sent when device's charge idle mode changed.
1406     *
1407     * @syscap SystemCapability.Notification.CommonEvent
1408     * @since 10
1409     */
1410    COMMON_EVENT_CHARGE_IDLE_MODE_CHANGED = 'usual.event.CHARGE_IDLE_MODE_CHANGED',
1411
1412    /**
1413     * Sent when the list of exempt applications in idle mode is updated.
1414     *
1415     * @syscap SystemCapability.Notification.CommonEvent
1416     * @systemapi
1417     * @since 10
1418     */
1419    COMMON_EVENT_DEVICE_IDLE_EXEMPTION_LIST_UPDATED = 'usual.event.DEVICE_IDLE_EXEMPTION_LIST_UPDATED',
1420
1421    /**
1422     * Sent when device's power save mode changed
1423     *
1424     * @syscap SystemCapability.Notification.CommonEvent
1425     * @since 9
1426     */
1427    COMMON_EVENT_POWER_SAVE_MODE_CHANGED = 'usual.event.POWER_SAVE_MODE_CHANGED',
1428
1429    /**
1430     * User added.
1431     *
1432     * @syscap SystemCapability.Notification.CommonEvent
1433     * This API can be called only by system applications.
1434     * @since 9
1435     */
1436    COMMON_EVENT_USER_ADDED = 'usual.event.USER_ADDED',
1437
1438    /**
1439     * User removed.
1440     *
1441     * @syscap SystemCapability.Notification.CommonEvent
1442     * This API can be called only by system applications.
1443     * @since 9
1444     */
1445    COMMON_EVENT_USER_REMOVED = 'usual.event.USER_REMOVED',
1446
1447    /**
1448     * Sent when ability is added.
1449     *
1450     * @syscap SystemCapability.Notification.CommonEvent
1451     * @since 9
1452     */
1453    COMMON_EVENT_ABILITY_ADDED = 'common.event.ABILITY_ADDED',
1454
1455    /**
1456     * Sent when ability is removed.
1457     *
1458     * @syscap SystemCapability.Notification.CommonEvent
1459     * @since 9
1460     */
1461    COMMON_EVENT_ABILITY_REMOVED = 'common.event.ABILITY_REMOVED',
1462
1463    /**
1464     * Sent when ability is updated.
1465     *
1466     * @syscap SystemCapability.Notification.CommonEvent
1467     * @since 9
1468     */
1469    COMMON_EVENT_ABILITY_UPDATED = 'common.event.ABILITY_UPDATED',
1470
1471    /**
1472     * Gps mode state changed.
1473     *
1474     * @syscap SystemCapability.Notification.CommonEvent
1475     * @since 9
1476     */
1477    COMMON_EVENT_LOCATION_MODE_STATE_CHANGED = 'usual.event.location.MODE_STATE_CHANGED',
1478
1479    /**
1480     * The ivi is about to go into sleep state when the ivi is turned off power.
1481     * This is a protected common event that can only be sent by system.
1482     *
1483     * @syscap SystemCapability.Notification.CommonEvent
1484     * @since 9
1485     */
1486    COMMON_EVENT_IVI_SLEEP = 'common.event.IVI_SLEEP',
1487
1488    /**
1489     * The ivi is slept and notify the app stop playing.
1490     * This is a protected common event that can only be sent by system.
1491     *
1492     * @syscap SystemCapability.Notification.CommonEvent
1493     * @since 9
1494     */
1495    COMMON_EVENT_IVI_PAUSE = 'common.event.IVI_PAUSE',
1496
1497    /**
1498     * The ivi is standby and notify the app stop playing.
1499     * This is a protected common event that can only be sent by system.
1500     *
1501     * @syscap SystemCapability.Notification.CommonEvent
1502     * @since 9
1503     */
1504    COMMON_EVENT_IVI_STANDBY = 'common.event.IVI_STANDBY',
1505
1506    /**
1507     * The app stop playing and save state.
1508     * This is a protected common event that can only be sent by system.
1509     *
1510     * @syscap SystemCapability.Notification.CommonEvent
1511     * @since 9
1512     */
1513    COMMON_EVENT_IVI_LASTMODE_SAVE = 'common.event.IVI_LASTMODE_SAVE',
1514
1515    /**
1516     * The ivi is voltage abnormal.
1517     * This is a protected common event that can only be sent by system.
1518     *
1519     * @syscap SystemCapability.Notification.CommonEvent
1520     * @since 9
1521     */
1522    COMMON_EVENT_IVI_VOLTAGE_ABNORMAL = 'common.event.IVI_VOLTAGE_ABNORMAL',
1523
1524    /**
1525     * The ivi temperature is too high.
1526     * This is a protected common event that can only be sent by system.this common event will be delete later,
1527     * please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL.
1528     *
1529     * @syscap SystemCapability.Notification.CommonEvent
1530     * @since 9
1531     */
1532    COMMON_EVENT_IVI_HIGH_TEMPERATURE = 'common.event.IVI_HIGH_TEMPERATURE',
1533
1534    /**
1535     * The ivi temperature is extreme high.
1536     * This is a protected common event that can only be sent by system.this common event will be delete later,
1537     * please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL.
1538     *
1539     * @syscap SystemCapability.Notification.CommonEvent
1540     * @since 9
1541     */
1542    COMMON_EVENT_IVI_EXTREME_TEMPERATURE = 'common.event.IVI_EXTREME_TEMPERATURE',
1543
1544    /**
1545     * The ivi temperature is abnormal.
1546     * This is a protected common event that can only be sent by system.
1547     *
1548     * @syscap SystemCapability.Notification.CommonEvent
1549     * @since 9
1550     */
1551    COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL = 'common.event.IVI_TEMPERATURE_ABNORMAL',
1552
1553    /**
1554     * The ivi voltage is recovery.
1555     * This is a protected common event that can only be sent by system.
1556     *
1557     * @syscap SystemCapability.Notification.CommonEvent
1558     * @since 9
1559     */
1560    COMMON_EVENT_IVI_VOLTAGE_RECOVERY = 'common.event.IVI_VOLTAGE_RECOVERY',
1561
1562    /**
1563     * The ivi temperature is recovery.
1564     * This is a protected common event that can only be sent by system.
1565     *
1566     * @syscap SystemCapability.Notification.CommonEvent
1567     * @since 9
1568     */
1569    COMMON_EVENT_IVI_TEMPERATURE_RECOVERY = 'common.event.IVI_TEMPERATURE_RECOVERY',
1570
1571    /**
1572     * The battery service is active.
1573     * This is a protected common event that can only be sent by system.
1574     *
1575     * @syscap SystemCapability.Notification.CommonEvent
1576     * @since 9
1577     */
1578    COMMON_EVENT_IVI_ACTIVE = 'common.event.IVI_ACTIVE',
1579
1580    /**
1581     * The usb state change events.
1582     * This is a protected common event that can only be sent by system.
1583     *
1584     * @syscap SystemCapability.Notification.CommonEvent
1585     * @since 9
1586     */
1587    COMMON_EVENT_USB_STATE = 'usual.event.hardware.usb.action.USB_STATE',
1588
1589    /**
1590     * The usb port changed.
1591     * This is a protected common event that can only be sent by system.
1592     *
1593     * @syscap SystemCapability.Notification.CommonEvent
1594     * @since 9
1595     */
1596    COMMON_EVENT_USB_PORT_CHANGED = 'usual.event.hardware.usb.action.USB_PORT_CHANGED',
1597
1598    /**
1599     * The usb device attached.
1600     * This is a protected common event that can only be sent by system.
1601     *
1602     * @syscap SystemCapability.Notification.CommonEvent
1603     * @since 9
1604     */
1605    COMMON_EVENT_USB_DEVICE_ATTACHED = 'usual.event.hardware.usb.action.USB_DEVICE_ATTACHED',
1606
1607    /**
1608     * The usb device detached.
1609     * This is a protected common event that can only be sent by system.
1610     *
1611     * @syscap SystemCapability.Notification.CommonEvent
1612     * @since 9
1613     */
1614    COMMON_EVENT_USB_DEVICE_DETACHED = 'usual.event.hardware.usb.action.USB_DEVICE_DETACHED',
1615
1616    /**
1617     * The usb accessory attached.
1618     * This is a protected common event that can only be sent by system.
1619     *
1620     * @syscap SystemCapability.Notification.CommonEvent
1621     * @since 9
1622     */
1623    COMMON_EVENT_USB_ACCESSORY_ATTACHED = 'usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED',
1624
1625    /**
1626     * The usb accessory detached.
1627     * This is a protected common event that can only be sent by system.
1628     *
1629     * @syscap SystemCapability.Notification.CommonEvent
1630     * @since 9
1631     */
1632    COMMON_EVENT_USB_ACCESSORY_DETACHED = 'usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED',
1633
1634    /**
1635     * The external storage was removed.
1636     * This is a protected common event that can only be sent by system.
1637     *
1638     * @syscap SystemCapability.Notification.CommonEvent
1639     * @since 9
1640     */
1641    COMMON_EVENT_DISK_REMOVED = 'usual.event.data.DISK_REMOVED',
1642
1643    /**
1644     * The external storage was unmounted.
1645     * This is a protected common event that can only be sent by system.
1646     *
1647     * @syscap SystemCapability.Notification.CommonEvent
1648     * @since 9
1649     */
1650    COMMON_EVENT_DISK_UNMOUNTED = 'usual.event.data.DISK_UNMOUNTED',
1651
1652    /**
1653     * The external storage was mounted.
1654     * This is a protected common event that can only be sent by system.
1655     *
1656     * @syscap SystemCapability.Notification.CommonEvent
1657     * @since 9
1658     */
1659    COMMON_EVENT_DISK_MOUNTED = 'usual.event.data.DISK_MOUNTED',
1660
1661    /**
1662     * The external storage was bad removal.
1663     * This is a protected common event that can only be sent by system.
1664     *
1665     * @syscap SystemCapability.Notification.CommonEvent
1666     * @since 9
1667     */
1668    COMMON_EVENT_DISK_BAD_REMOVAL = 'usual.event.data.DISK_BAD_REMOVAL',
1669
1670    /**
1671     * The external storage was unmountable.
1672     * This is a protected common event that can only be sent by system.
1673     *
1674     * @syscap SystemCapability.Notification.CommonEvent
1675     * @since 9
1676     */
1677    COMMON_EVENT_DISK_UNMOUNTABLE = 'usual.event.data.DISK_UNMOUNTABLE',
1678
1679    /**
1680     * The external storage was eject.
1681     * This is a protected common event that can only be sent by system.
1682     *
1683     * @syscap SystemCapability.Notification.CommonEvent
1684     * @since 9
1685     */
1686    COMMON_EVENT_DISK_EJECT = 'usual.event.data.DISK_EJECT',
1687
1688    /**
1689     * The external storage was removed.
1690     * This is a protected common event that can only be sent by system.
1691     * This API can be called only by system applications.
1692     *
1693     * @syscap SystemCapability.Notification.CommonEvent
1694     * @since 9
1695     */
1696    COMMON_EVENT_VOLUME_REMOVED = 'usual.event.data.VOLUME_REMOVED',
1697
1698    /**
1699     * The external storage was unmounted.
1700     * This is a protected common event that can only be sent by system.
1701     * This API can be called only by system applications.
1702     *
1703     * @syscap SystemCapability.Notification.CommonEvent
1704     * @since 9
1705     */
1706    COMMON_EVENT_VOLUME_UNMOUNTED = 'usual.event.data.VOLUME_UNMOUNTED',
1707
1708    /**
1709     * The external storage was mounted.
1710     * This is a protected common event that can only be sent by system.
1711     * This API can be called only by system applications.
1712     *
1713     * @syscap SystemCapability.Notification.CommonEvent
1714     * @since 9
1715     */
1716    COMMON_EVENT_VOLUME_MOUNTED = 'usual.event.data.VOLUME_MOUNTED',
1717
1718    /**
1719     * The external storage was bad removal.
1720     * This is a protected common event that can only be sent by system.
1721     * This API can be called only by system applications.
1722     *
1723     * @syscap SystemCapability.Notification.CommonEvent
1724     * @since 9
1725     */
1726    COMMON_EVENT_VOLUME_BAD_REMOVAL = 'usual.event.data.VOLUME_BAD_REMOVAL',
1727
1728    /**
1729     * The external storage was eject.
1730     * This is a protected common event that can only be sent by system.
1731     * This API can be called only by system applications.
1732     *
1733     * @syscap SystemCapability.Notification.CommonEvent
1734     * @since 9
1735     */
1736    COMMON_EVENT_VOLUME_EJECT = 'usual.event.data.VOLUME_EJECT',
1737
1738    /**
1739     * The visible of account was updated.
1740     * This is a protected common event that can only be sent by system.
1741     *
1742     * @syscap SystemCapability.Notification.CommonEvent
1743     * @since 9
1744     */
1745    COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED = 'usual.event.data.VISIBLE_ACCOUNTS_UPDATED',
1746
1747    /**
1748     * Account was deleted.
1749     * This is a protected common event that can only be sent by system.
1750     *
1751     * @syscap SystemCapability.Notification.CommonEvent
1752     * This API can be called only by system applications.
1753     * @since 9
1754     */
1755    COMMON_EVENT_ACCOUNT_DELETED = 'usual.event.data.ACCOUNT_DELETED',
1756
1757    /**
1758     * Foundation was ready.
1759     * This is a protected common event that can only be sent by system.
1760     *
1761     * @syscap SystemCapability.Notification.CommonEvent
1762     * @since 9
1763     */
1764    COMMON_EVENT_FOUNDATION_READY = 'common.event.FOUNDATION_READY',
1765
1766    /**
1767     * Indicates the common event Action indicating that the airplane mode status of the device changes.
1768     * Users can register this event to listen to the change of the airplane mode status of the device.
1769     *
1770     * @syscap SystemCapability.Notification.CommonEvent
1771     * @since 9
1772     */
1773    COMMON_EVENT_AIRPLANE_MODE_CHANGED = 'usual.event.AIRPLANE_MODE',
1774
1775    /**
1776     * sent by the window manager service when the window mode is split.
1777     *
1778     * @syscap SystemCapability.Notification.CommonEvent
1779     * @since 9
1780     */
1781    /**
1782     * sent by the window manager service when the window mode is split.
1783     *
1784     * @syscap SystemCapability.Notification.CommonEvent
1785     * @atomicservice
1786     * @since 11
1787     */
1788    COMMON_EVENT_SPLIT_SCREEN = 'common.event.SPLIT_SCREEN',
1789
1790    /**
1791     * The notification slot has been updated.
1792     * This is a protected common event that can only be sent by system.
1793     * This API can be called only by system applications.
1794     *
1795     * @syscap SystemCapability.Notification.CommonEvent
1796     * @since 9
1797     */
1798    COMMON_EVENT_SLOT_CHANGE = 'usual.event.SLOT_CHANGE',
1799
1800    /**
1801     * Indicate the action of a common event that the spn display information has been updated.
1802     * This common event can be triggered only by system.
1803     *
1804     * @syscap SystemCapability.Notification.CommonEvent
1805     * @since 9
1806     */
1807    COMMON_EVENT_SPN_INFO_CHANGED = 'usual.event.SPN_INFO_CHANGED',
1808
1809    /**
1810     * Indicate the result of quick fix apply.
1811     * This common event can be triggered only by system.
1812     *
1813     * @syscap SystemCapability.Notification.CommonEvent
1814     * @since 9
1815     */
1816    COMMON_EVENT_QUICK_FIX_APPLY_RESULT = 'usual.event.QUICK_FIX_APPLY_RESULT',
1817
1818    /**
1819     * Indicate the result of quick fix revoke.
1820     * This common event can be triggered only by system.
1821     *
1822     * @syscap SystemCapability.Notification.CommonEvent
1823     * @since 10
1824     */
1825    COMMON_EVENT_QUICK_FIX_REVOKE_RESULT = 'usual.event.QUICK_FIX_REVOKE_RESULT',
1826
1827    /**
1828     * Indicate the action of a common event that the user information has been updated.
1829     * This common event can be triggered only by system.
1830     *
1831     * @syscap SystemCapability.Notification.CommonEvent
1832     * @since 9
1833     */
1834    COMMON_EVENT_USER_INFO_UPDATED = 'usual.event.USER_INFO_UPDATED',
1835
1836    /**
1837     * Indicate http proxy has been changed.
1838     * This is a protected common event that can only be sent by system.
1839     *
1840     * @syscap SystemCapability.Notification.CommonEvent
1841     * @since 10
1842     */
1843    COMMON_EVENT_HTTP_PROXY_CHANGE = 'usual.event.HTTP_PROXY_CHANGE',
1844
1845    /**
1846     * Indicates the action of a common event that the phone SIM card state has changed.
1847     * This is a protected common event that can only be sent by system.
1848     *
1849     * @syscap SystemCapability.Notification.CommonEvent
1850     * @since 10
1851     */
1852    COMMON_EVENT_SIM_STATE_CHANGED = 'usual.event.SIM_STATE_CHANGED',
1853
1854    /**
1855     * Indicate the action of a common event that a new sms bas been received by the device.
1856     * To subscribe to this common event, your application must have the ohos.permission.RECEIVE_SMS permission.
1857     * This common event can be triggered only by system.
1858     *
1859     * @syscap SystemCapability.Notification.CommonEvent
1860     * @systemapi
1861     * @since 10
1862     */
1863    COMMON_EVENT_SMS_RECEIVE_COMPLETED = 'usual.event.SMS_RECEIVE_COMPLETED',
1864
1865    /**
1866     * Indicate the action of a common event that a new sms emergency cell broadcast bas been received by the device.
1867     * This common event can be triggered only by system.
1868     *
1869     * @syscap SystemCapability.Notification.CommonEvent
1870     * @systemapi
1871     * @since 10
1872     */
1873    COMMON_EVENT_SMS_EMERGENCY_CB_RECEIVE_COMPLETED = 'usual.event.SMS_EMERGENCY_CB_RECEIVE_COMPLETED',
1874
1875    /**
1876     * Indicate the action of a common event that a new sms normal cell broadcast bas been received by the device.
1877     * This common event can be triggered only by system.
1878     *
1879     * @syscap SystemCapability.Notification.CommonEvent
1880     * @systemapi
1881     * @since 10
1882     */
1883    COMMON_EVENT_SMS_CB_RECEIVE_COMPLETED = 'usual.event.SMS_CB_RECEIVE_COMPLETED',
1884
1885    /**
1886     * Indicate the action of a common event that a STK command has been received by the device.
1887     * To subscribe to this protected common event, your application must have the ohos.permission.STK_MESSAGES_RECEIVED
1888     * permission.
1889     * This common event can be triggered only by system.
1890     *
1891     * @syscap SystemCapability.Notification.CommonEvent
1892     * @systemapi
1893     * @since 10
1894     */
1895    COMMON_EVENT_STK_COMMAND = 'usual.event.STK_COMMAND',
1896
1897    /**
1898     * Indicate the action of a common event that STK session end.
1899     * To subscribe to this protected common event, your application must have the ohos.permission.STK_MESSAGES_RECEIVED
1900     * permission.
1901     * This common event can be triggered only by system.
1902     *
1903     * @syscap SystemCapability.Notification.CommonEvent
1904     * @systemapi
1905     * @since 10
1906     */
1907    COMMON_EVENT_STK_SESSION_END = 'usual.event.STK_SESSION_END',
1908
1909    /**
1910     * Indicate the action of a common event that the STK phone card state has changed.
1911     * To subscribe to this protected common event, your application must have the ohos.permission.STK_MESSAGES_RECEIVED
1912     * permission.
1913     * This common event can be triggered only by system.
1914     *
1915     * @syscap SystemCapability.Notification.CommonEvent
1916     * @systemapi
1917     * @since 10
1918     */
1919    COMMON_EVENT_STK_CARD_STATE_CHANGED = 'usual.event.STK_CARD_STATE_CHANGED',
1920
1921    /**
1922     * Indicate the action of a common event that an alpha string during call control has been received by the device.
1923     * To subscribe to this protected common event, your application must have the ohos.permission.STK_MESSAGES_RECEIVED
1924     * permission.
1925     * This common event can be triggered only by system.
1926     *
1927     * @syscap SystemCapability.Notification.CommonEvent
1928     * @systemapi
1929     * @since 10
1930     */
1931    COMMON_EVENT_STK_ALPHA_IDENTIFIER = 'usual.event.STK_ALPHA_IDENTIFIER',
1932
1933    /**
1934     * Indicate the action of a common event that a new sms wappush has been received by the device.
1935     * This common event can be triggered only by system.
1936     *
1937     * @syscap SystemCapability.Notification.CommonEvent
1938     * @systemapi
1939     * @since 10
1940     */
1941    COMMON_EVENT_SMS_WAPPUSH_RECEIVE_COMPLETED = 'usual.event.SMS_WAPPUSH_RECEIVE_COMPLETED',
1942
1943    /**
1944     * Indicate the action of a common event that the operator config has been updated.
1945     * This common event can be triggered only by system.
1946     *
1947     * @syscap SystemCapability.Notification.CommonEvent
1948     * @systemapi
1949     * @since 10
1950     */
1951    COMMON_EVENT_OPERATOR_CONFIG_CHANGED = 'usual.event.OPERATOR_CONFIG_CHANGED',
1952
1953    /**
1954     * Indicates the action of a common event that the default SMS subscription has been changed.
1955     * This is a protected common event that can only be sent by system.
1956     *
1957     * @syscap SystemCapability.Notification.CommonEvent
1958     * @systemapi
1959     * @since 10
1960     */
1961    COMMON_EVENT_SIM_CARD_DEFAULT_SMS_SUBSCRIPTION_CHANGED = 'usual.event.SIM.DEFAULT_SMS_SUBSCRIPTION_CHANGED',
1962
1963    /**
1964     * Indicates the action of a common event that the default data subscription has been changed.
1965     * This is a protected common event that can only be sent by system.
1966     *
1967     * @syscap SystemCapability.Notification.CommonEvent
1968     * @systemapi
1969     * @since 10
1970     */
1971    COMMON_EVENT_SIM_CARD_DEFAULT_DATA_SUBSCRIPTION_CHANGED = 'usual.event.SIM.DEFAULT_DATA_SUBSCRIPTION_CHANGED',
1972
1973    /**
1974     * Indicates the action of a common event that the default main subscription has been changed.
1975     * This is a protected common event that can only be sent by system.
1976     *
1977     * @syscap SystemCapability.Notification.CommonEvent
1978     * @systemapi
1979     * @since 10
1980     */
1981    COMMON_EVENT_SIM_CARD_DEFAULT_MAIN_SUBSCRIPTION_CHANGED = 'usual.event.SIM.DEFAULT_MAIN_SUBSCRIPTION_CHANGED',
1982
1983    /**
1984     * Indicates the action of a common event that the status of setting primary slot has been changed.
1985     * This is a protected common event that can only be sent by system.
1986     *
1987     * @syscap SystemCapability.Notification.CommonEvent
1988     * @systemapi
1989     * @since 11
1990     */
1991    COMMON_EVENT_SET_PRIMARY_SLOT_STATUS = 'usual.event.SET_PRIMARY_SLOT_STATUS',
1992
1993    /**
1994     * Indicates the action of a common event that the roaming status of main card has been changed.
1995     * This is a protected common event that can only be sent by system.
1996     *
1997     * @syscap SystemCapability.Notification.CommonEvent
1998     * @systemapi
1999     * @since 11
2000     */
2001    COMMON_EVENT_PRIMARY_SLOT_ROAMING = 'usual.event.PRIMARY_SLOT_ROAMING',
2002
2003    /**
2004     * Indicates the action of a common event that the default voice subscription has been changed.
2005     * This is a protected common event that can only be sent by system.
2006     *
2007     * @syscap SystemCapability.Notification.CommonEvent
2008     * @systemapi
2009     * @since 10
2010     */
2011    COMMON_EVENT_SIM_CARD_DEFAULT_VOICE_SUBSCRIPTION_CHANGED = 'usual.event.SIM.DEFAULT_VOICE_SUBSCRIPTION_CHANGED',
2012
2013    /**
2014     * Indicates the action of a common event that the call state has been changed.
2015     * To subscribe to this protected common event, your application must have the ohos.permission.GET_TELEPHONY_STATE
2016     * permission.
2017     * This is a protected common event that can only be sent by system.
2018     *
2019     * @syscap SystemCapability.Notification.CommonEvent
2020     * @since 10
2021     */
2022    COMMON_EVENT_CALL_STATE_CHANGED = 'usual.event.CALL_STATE_CHANGED',
2023
2024    /**
2025     * Indicates the action of a common event that the cellular data state has been changed.
2026     * This is a protected common event that can only be sent by system.
2027     *
2028     * @syscap SystemCapability.Notification.CommonEvent
2029     * @systemapi
2030     * @since 10
2031     */
2032    COMMON_EVENT_CELLULAR_DATA_STATE_CHANGED = 'usual.event.CELLULAR_DATA_STATE_CHANGED',
2033
2034    /**
2035     * Indicates the action of a common event that the network state has been changed.
2036     * This is a protected common event that can only be sent by system.
2037     *
2038     * @syscap SystemCapability.Notification.CommonEvent
2039     * @since 10
2040     */
2041    COMMON_EVENT_NETWORK_STATE_CHANGED = 'usual.event.NETWORK_STATE_CHANGED',
2042
2043    /**
2044     * Indicates the action of a common event that the signal info has been changed.
2045     * This is a protected common event that can only be sent by system.
2046     *
2047     * @syscap SystemCapability.Notification.CommonEvent
2048     * @since 10
2049     */
2050    COMMON_EVENT_SIGNAL_INFO_CHANGED = 'usual.event.SIGNAL_INFO_CHANGED',
2051
2052    /**
2053     * Indicates the action of a common event that the incoming call has been missed.
2054     * To subscribe to this protected common event, your application must have the ohos.permission.GET_TELEPHONY_STATE
2055     * permission.
2056     * This is a protected common event that can only be sent by system.
2057     *
2058     * @syscap SystemCapability.Notification.CommonEvent
2059     * @systemapi
2060     * @since 10
2061     */
2062    COMMON_EVENT_INCOMING_CALL_MISSED = 'usual.event.INCOMING_CALL_MISSED',
2063
2064    /**
2065     * Indicates the action of a common event that radio state change.
2066     * This is a protected common event that can only be sent by system.
2067     *
2068     * @syscap SystemCapability.Notification.CommonEvent
2069     * @systemapi
2070     * @since 10
2071     */
2072    COMMON_EVENT_RADIO_STATE_CHANGE = 'usual.event.RADIO_STATE_CHANGE',
2073
2074    /**
2075     * Indicate the action of a common event that domain account status has been changed.
2076     * To subscribe to this protected common event, your application must have the ohos.permission.GET_LOCAL_ACCOUNTS
2077     *
2078     * @syscap SystemCapability.Notification.CommonEvent
2079     * @systemapi
2080     * @since 10
2081     */
2082    COMMON_EVENT_DOMAIN_ACCOUNT_STATUS_CHANGED = 'usual.event.DOMAIN_ACCOUNT_STATUS_CHANGED',
2083
2084    /**
2085     * This commonEvent means when the screen is unlocked.
2086     *
2087     * @syscap SystemCapability.Notification.CommonEvent
2088     * @since 10
2089     */
2090    /**
2091     * This commonEvent means when the screen is unlocked.
2092     *
2093     * @syscap SystemCapability.Notification.CommonEvent
2094     * @atomicservice
2095     * @since 11
2096     */
2097    COMMON_EVENT_SCREEN_UNLOCKED = 'usual.event.SCREEN_UNLOCKED',
2098
2099    /**
2100     * This commonEvent means when the screen is locked.
2101     *
2102     * @syscap SystemCapability.Notification.CommonEvent
2103     * @since 10
2104     */
2105    /**
2106     * This commonEvent means when the screen is locked.
2107     *
2108     * @syscap SystemCapability.Notification.CommonEvent
2109     * @atomicservice
2110     * @since 11
2111     */
2112    COMMON_EVENT_SCREEN_LOCKED = 'usual.event.SCREEN_LOCKED',
2113
2114    /**
2115     * Indicates the action of a common event that the network connectivity changed.
2116     * This is a protected common event that can only be sent by system.
2117     *
2118     * @syscap SystemCapability.Notification.CommonEvent
2119     * @since 10
2120     */
2121    /**
2122     * Indicates the action of a common event that the network connectivity changed.
2123     * This is a protected common event that can only be sent by system.
2124     *
2125     * @syscap SystemCapability.Notification.CommonEvent
2126     * @atomicservice
2127     * @since 11
2128     */
2129    COMMON_EVENT_CONNECTIVITY_CHANGE = 'usual.event.CONNECTIVITY_CHANGE',
2130
2131    /**
2132     * Indicates the action of a common event that special number has been entered by dialer
2133     * This is a protected common event that can only be sent by system.
2134     *
2135     * @syscap SystemCapability.Notification.CommonEvent
2136     * @systemapi
2137     * @since 10
2138     */
2139    COMMON_EVENT_SPECIAL_CODE = 'common.event.SPECIAL_CODE',
2140
2141    /**
2142      * Indicates the action of a common event that audio quality change.
2143      * This is a protected common event that can only be sent by system.
2144      *
2145      * @syscap SystemCapability.Notification.CommonEvent
2146      * @systemapi
2147      * @since 10
2148      */
2149    COMMON_EVENT_AUDIO_QUALITY_CHANGE = 'usual.event.AUDIO_QUALITY_CHANGE',
2150
2151    /**
2152      * Indicates that the privacy status is changed.
2153      * This is a protected common event that can only be sent by system.
2154      *
2155      * @syscap SystemCapability.Notification.CommonEvent
2156      * @systemapi
2157      * @since 11
2158      */
2159    COMMON_EVENT_PRIVACY_STATE_CHANGED = 'usual.event.PRIVACY_STATE_CHANGED',
2160
2161    /**
2162     * This commonEvent means when a new application package start to install on the device.
2163     * This is a protected common event that can only be sent by system.
2164     *
2165     * @syscap SystemCapability.Notification.CommonEvent
2166     * @systemapi
2167     * @since 12
2168     */
2169    COMMON_EVENT_PACKAGE_INSTALLATION_STARTED = 'usual.event.PACKAGE_INSTALLATION_STARTED',
2170
2171    /**
2172     * This common event means an application package enables or disables a dynamic icon.
2173     * This is a protected common event that can only be sent by system.
2174     *
2175     * @syscap SystemCapability.Notification.CommonEvent
2176     * @systemapi
2177     * @since 12
2178     */
2179    COMMON_EVENT_DYNAMIC_ICON_CHANGED = 'usual.event.DYNAMIC_ICON_CHANGED',
2180
2181    /**
2182     * This common event means that minors mode is enabled.
2183     * This is a protected common event that can only be sent by system.
2184     *
2185     * @syscap SystemCapability.Notification.CommonEvent
2186     * @atomicservice
2187     * @since 12
2188     */
2189    COMMON_EVENT_MINORSMODE_ON = 'usual.event.MINORSMODE_ON',
2190
2191    /**
2192     * This common event means that minors mode is disabled.
2193     * This is a protected common event that can only be sent by system.
2194     *
2195     * @syscap SystemCapability.Notification.CommonEvent
2196     * @atomicservice
2197     * @since 12
2198     */
2199    COMMON_EVENT_MINORSMODE_OFF = 'usual.event.MINORSMODE_OFF',
2200
2201    /**
2202     * Indicates the action of a common event that the bundle resources have been changed.
2203     * To subscribe to this common event, your application must have the ohos.permission.GET_BUNDLE_RESOURCES
2204     * permission.
2205     * This is a protected common event, which can be sent only by the system.
2206     *
2207     * @syscap SystemCapability.Notification.CommonEvent
2208     * @systemapi
2209     * @since 15
2210     */
2211    COMMON_EVENT_BUNDLE_RESOURCES_CHANGED = 'usual.event.BUNDLE_RESOURCES_CHANGED',
2212
2213    /**
2214     * This common event means that datashare is ready.
2215     * This is a protected common event that can only be sent by system.
2216     *
2217     * @syscap SystemCapability.Notification.CommonEvent
2218     * @atomicservice
2219     * @since 12
2220     */
2221    COMMON_EVENT_DATA_SHARE_READY = 'usual.event.DATA_SHARE_READY',
2222
2223    /**
2224     * This common event means that vpn connection status has been changed.
2225     * This is a protected common event that can only be sent by system.
2226     *
2227     * @syscap SystemCapability.Notification.CommonEvent
2228     * @systemapi
2229     * @since 12
2230     */
2231    COMMON_EVENT_VPN_CONNECTION_STATUS_CHANGED = 'usual.event.VPN_CONNECTION_STATUS_CHANGED',
2232
2233    /**
2234     * Indicates that an application begins to restored.
2235     * To subscribe to this common event, your application must have the ohos.permission.START_RESTORE_NOTIFICATION
2236     * permission.
2237     * This is a protected common event that can only be sent by system.
2238     *
2239     * @syscap SystemCapability.Notification.CommonEvent
2240     * @systemapi
2241     * @since 13
2242     */
2243    COMMON_EVENT_RESTORE_START = 'usual.event.RESTORE_START',
2244
2245    /**
2246     * Indicates that the managed browser policy is changed.
2247     * This is a protected common event that can only be sent by system.
2248     *
2249     * @syscap SystemCapability.Notification.CommonEvent
2250     * @since 15
2251     */
2252    COMMON_EVENT_MANAGED_BROWSER_POLICY_CHANGED = 'usual.event.MANAGED_BROWSER_POLICY_CHANGED',
2253  }
2254
2255  /**
2256   * Describes the data of the common event
2257   *
2258   * @syscap SystemCapability.Notification.CommonEvent
2259   * @since 10
2260   */
2261  /**
2262   * Describes the data of the common event
2263   *
2264   * @typedef { _CommonEventData } CommonEventData
2265   * @syscap SystemCapability.Notification.CommonEvent
2266   * @atomicservice
2267   * @since 11
2268   */
2269  export type CommonEventData = _CommonEventData;
2270
2271  /**
2272   * Describes the subscriber of common event
2273   *
2274   * @syscap SystemCapability.Notification.CommonEvent
2275   * @since 10
2276   */
2277  /**
2278   * Describes the subscriber of common event
2279   *
2280   * @typedef { _CommonEventSubscriber } CommonEventSubscriber
2281   * @syscap SystemCapability.Notification.CommonEvent
2282   * @atomicservice
2283   * @since 11
2284   */
2285  export type CommonEventSubscriber = _CommonEventSubscriber;
2286
2287  /**
2288   * Describes the information of the subscriber
2289   *
2290   * @syscap SystemCapability.Notification.CommonEvent
2291   * @since 10
2292   */
2293  /**
2294   * Describes the information of the subscriber
2295   *
2296   * @typedef { _CommonEventSubscribeInfo } CommonEventSubscribeInfo
2297   * @syscap SystemCapability.Notification.CommonEvent
2298   * @atomicservice
2299   * @since 11
2300   */
2301  export type CommonEventSubscribeInfo = _CommonEventSubscribeInfo;
2302
2303  /**
2304   * Describes the information of the subscriber
2305   *
2306   * @syscap SystemCapability.Notification.CommonEvent
2307   * @since 10
2308   */
2309  /**
2310   * Describes the information of the subscriber
2311   *
2312   * @syscap SystemCapability.Notification.CommonEvent
2313   * @atomicservice
2314   * @since 11
2315   */
2316  /**
2317   * Describes the information of the subscriber
2318   *
2319   * @typedef { _CommonEventPublishData } CommonEventPublishData
2320   * @syscap SystemCapability.Notification.CommonEvent
2321   * @crossplatform
2322   * @atomicservice
2323   * @since 12
2324   */
2325  export type CommonEventPublishData = _CommonEventPublishData;
2326}
2327
2328export default commonEventManager;
2329