161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2022-2024 Huawei Device Co., Ltd. 361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 461847f8eSopenharmony_ci * you may not use this file except in compliance with the License. 561847f8eSopenharmony_ci * You may obtain a copy of the License at 661847f8eSopenharmony_ci * 761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 861847f8eSopenharmony_ci * 961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and 1361847f8eSopenharmony_ci * limitations under the License. 1461847f8eSopenharmony_ci */ 1561847f8eSopenharmony_ci 1661847f8eSopenharmony_ci/** 1761847f8eSopenharmony_ci * @file 1861847f8eSopenharmony_ci * @kit BasicServicesKit 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ciimport { AsyncCallback } from './@ohos.base'; 2261847f8eSopenharmony_ciimport { CommonEventData as _CommonEventData } from './commonEvent/commonEventData'; 2361847f8eSopenharmony_ciimport { CommonEventSubscriber as _CommonEventSubscriber } from './commonEvent/commonEventSubscriber'; 2461847f8eSopenharmony_ciimport { CommonEventSubscribeInfo as _CommonEventSubscribeInfo } from './commonEvent/commonEventSubscribeInfo'; 2561847f8eSopenharmony_ciimport { CommonEventPublishData as _CommonEventPublishData } from './commonEvent/commonEventPublishData'; 2661847f8eSopenharmony_ci 2761847f8eSopenharmony_ci/** 2861847f8eSopenharmony_ci * Common event definition 2961847f8eSopenharmony_ci * 3061847f8eSopenharmony_ci * @namespace commonEventManager 3161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 3261847f8eSopenharmony_ci * @since 9 3361847f8eSopenharmony_ci */ 3461847f8eSopenharmony_ci/** 3561847f8eSopenharmony_ci * Common event definition 3661847f8eSopenharmony_ci * 3761847f8eSopenharmony_ci * @namespace commonEventManager 3861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 3961847f8eSopenharmony_ci * @crossplatform 4061847f8eSopenharmony_ci * @atomicservice 4161847f8eSopenharmony_ci * @since 11 4261847f8eSopenharmony_ci */ 4361847f8eSopenharmony_cideclare namespace commonEventManager { 4461847f8eSopenharmony_ci /** 4561847f8eSopenharmony_ci * Publishes an ordered, sticky, or standard common event. 4661847f8eSopenharmony_ci * 4761847f8eSopenharmony_ci * @param { string } event - name of the common event. 4861847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of publish. 4961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 5061847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 5161847f8eSopenharmony_ci * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 5261847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 5361847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 5461847f8eSopenharmony_ci * @throws { BusinessError } 1500009 - error obtaining system parameters 5561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 5661847f8eSopenharmony_ci * @since 9 5761847f8eSopenharmony_ci */ 5861847f8eSopenharmony_ci /** 5961847f8eSopenharmony_ci * Publishes an ordered, sticky, or standard common event. 6061847f8eSopenharmony_ci * 6161847f8eSopenharmony_ci * @param { string } event - name of the common event. 6261847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of publish. 6361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 6461847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 6561847f8eSopenharmony_ci * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 6661847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 6761847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 6861847f8eSopenharmony_ci * @throws { BusinessError } 1500009 - error obtaining system parameters 6961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 7061847f8eSopenharmony_ci * @atomicservice 7161847f8eSopenharmony_ci * @since 11 7261847f8eSopenharmony_ci */ 7361847f8eSopenharmony_ci /** 7461847f8eSopenharmony_ci * Publishes an ordered, sticky, or standard common event. 7561847f8eSopenharmony_ci * 7661847f8eSopenharmony_ci * @param { string } event - name of the common event. 7761847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of publish. 7861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 7961847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 8061847f8eSopenharmony_ci * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 8161847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 8261847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 8361847f8eSopenharmony_ci * @throws { BusinessError } 1500009 - error obtaining system parameters 8461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 8561847f8eSopenharmony_ci * @crossplatform 8661847f8eSopenharmony_ci * @atomicservice 8761847f8eSopenharmony_ci * @since 12 8861847f8eSopenharmony_ci */ 8961847f8eSopenharmony_ci function publish(event: string, callback: AsyncCallback<void>): void; 9061847f8eSopenharmony_ci 9161847f8eSopenharmony_ci /** 9261847f8eSopenharmony_ci * Publishes an ordered, sticky, or standard common event. 9361847f8eSopenharmony_ci * 9461847f8eSopenharmony_ci * @param { string } event - name of the common event. 9561847f8eSopenharmony_ci * @param { CommonEventPublishData } options - Indicate the CommonEventPublishData containing the common event 9661847f8eSopenharmony_ci * content and attributes. 9761847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of publish. 9861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 9961847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 10061847f8eSopenharmony_ci * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 10161847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 10261847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 10361847f8eSopenharmony_ci * @throws { BusinessError } 1500009 - error obtaining system parameters 10461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 10561847f8eSopenharmony_ci * @since 9 10661847f8eSopenharmony_ci */ 10761847f8eSopenharmony_ci /** 10861847f8eSopenharmony_ci * Publishes an ordered, sticky, or standard common event. 10961847f8eSopenharmony_ci * 11061847f8eSopenharmony_ci * @param { string } event - name of the common event. 11161847f8eSopenharmony_ci * @param { CommonEventPublishData } options - Indicate the CommonEventPublishData containing the common event 11261847f8eSopenharmony_ci * content and attributes. 11361847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of publish. 11461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 11561847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 11661847f8eSopenharmony_ci * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 11761847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 11861847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 11961847f8eSopenharmony_ci * @throws { BusinessError } 1500009 - error obtaining system parameters 12061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 12161847f8eSopenharmony_ci * @atomicservice 12261847f8eSopenharmony_ci * @since 11 12361847f8eSopenharmony_ci */ 12461847f8eSopenharmony_ci /** 12561847f8eSopenharmony_ci * Publishes an ordered, sticky, or standard common event. 12661847f8eSopenharmony_ci * 12761847f8eSopenharmony_ci * @param { string } event - name of the common event. 12861847f8eSopenharmony_ci * @param { CommonEventPublishData } options - Indicate the CommonEventPublishData containing the common event 12961847f8eSopenharmony_ci * content and attributes. 13061847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of publish. 13161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 13261847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 13361847f8eSopenharmony_ci * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 13461847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 13561847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 13661847f8eSopenharmony_ci * @throws { BusinessError } 1500009 - error obtaining system parameters 13761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 13861847f8eSopenharmony_ci * @crossplatform 13961847f8eSopenharmony_ci * @atomicservice 14061847f8eSopenharmony_ci * @since 12 14161847f8eSopenharmony_ci */ 14261847f8eSopenharmony_ci function publish(event: string, options: CommonEventPublishData, callback: AsyncCallback<void>): void; 14361847f8eSopenharmony_ci 14461847f8eSopenharmony_ci /** 14561847f8eSopenharmony_ci * Publishes an ordered, sticky, or standard common event to a specified user. 14661847f8eSopenharmony_ci * 14761847f8eSopenharmony_ci * @param { string } event - Specified the names of the common events. 14861847f8eSopenharmony_ci * @param { number } userId - Specified the user to receive the common events. 14961847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of publishAsUser. 15061847f8eSopenharmony_ci * @throws { BusinessError } 202 - not system app 15161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 15261847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 15361847f8eSopenharmony_ci * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 15461847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 15561847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 15661847f8eSopenharmony_ci * @throws { BusinessError } 1500009 - error obtaining system parameters 15761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 15861847f8eSopenharmony_ci * @systemapi 15961847f8eSopenharmony_ci * @since 9 16061847f8eSopenharmony_ci */ 16161847f8eSopenharmony_ci function publishAsUser(event: string, userId: number, callback: AsyncCallback<void>): void; 16261847f8eSopenharmony_ci 16361847f8eSopenharmony_ci /** 16461847f8eSopenharmony_ci * Publishes an ordered, sticky, or standard common event to a specified user. 16561847f8eSopenharmony_ci * 16661847f8eSopenharmony_ci * @param { string } event - Specified the names of the common events. 16761847f8eSopenharmony_ci * @param { number } userId - Specified the user to receive the common events. 16861847f8eSopenharmony_ci * @param { CommonEventPublishData } options - Indicates the CommonEventPublishData containing the common event 16961847f8eSopenharmony_ci * content and attributes. 17061847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of publishAsUser. 17161847f8eSopenharmony_ci * @throws { BusinessError } 202 - not system app 17261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 17361847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 17461847f8eSopenharmony_ci * @throws { BusinessError } 1500004 - A third-party application cannot send system common events. 17561847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 17661847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 17761847f8eSopenharmony_ci * @throws { BusinessError } 1500009 - error obtaining system parameters 17861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 17961847f8eSopenharmony_ci * @systemapi 18061847f8eSopenharmony_ci * @since 9 18161847f8eSopenharmony_ci */ 18261847f8eSopenharmony_ci function publishAsUser( 18361847f8eSopenharmony_ci event: string, 18461847f8eSopenharmony_ci userId: number, 18561847f8eSopenharmony_ci options: CommonEventPublishData, 18661847f8eSopenharmony_ci callback: AsyncCallback<void> 18761847f8eSopenharmony_ci ): void; 18861847f8eSopenharmony_ci 18961847f8eSopenharmony_ci /** 19061847f8eSopenharmony_ci * Creates a CommonEventSubscriber for the SubscriberInfo. 19161847f8eSopenharmony_ci * 19261847f8eSopenharmony_ci * @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber. 19361847f8eSopenharmony_ci * @param { AsyncCallback<CommonEventSubscriber> } callback - The callback is used to return the 19461847f8eSopenharmony_ci * CommonEventSubscriber object. 19561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 19661847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 19761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 19861847f8eSopenharmony_ci * @since 9 19961847f8eSopenharmony_ci */ 20061847f8eSopenharmony_ci /** 20161847f8eSopenharmony_ci * Creates a CommonEventSubscriber for the SubscriberInfo. 20261847f8eSopenharmony_ci * 20361847f8eSopenharmony_ci * @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber. 20461847f8eSopenharmony_ci * @param { AsyncCallback<CommonEventSubscriber> } callback - The callback is used to return the 20561847f8eSopenharmony_ci * CommonEventSubscriber object. 20661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 20761847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 20861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 20961847f8eSopenharmony_ci * @crossplatform 21061847f8eSopenharmony_ci * @atomicservice 21161847f8eSopenharmony_ci * @since 11 21261847f8eSopenharmony_ci */ 21361847f8eSopenharmony_ci function createSubscriber( 21461847f8eSopenharmony_ci subscribeInfo: CommonEventSubscribeInfo, 21561847f8eSopenharmony_ci callback: AsyncCallback<CommonEventSubscriber> 21661847f8eSopenharmony_ci ): void; 21761847f8eSopenharmony_ci 21861847f8eSopenharmony_ci /** 21961847f8eSopenharmony_ci * Creates a CommonEventSubscriber for the SubscriberInfo. 22061847f8eSopenharmony_ci * 22161847f8eSopenharmony_ci * @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber. 22261847f8eSopenharmony_ci * @returns { Promise<CommonEventSubscriber> } Returns the CommonEventSubscriber object. 22361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 22461847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 22561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 22661847f8eSopenharmony_ci * @since 9 22761847f8eSopenharmony_ci */ 22861847f8eSopenharmony_ci /** 22961847f8eSopenharmony_ci * Creates a CommonEventSubscriber for the SubscriberInfo. 23061847f8eSopenharmony_ci * 23161847f8eSopenharmony_ci * @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber. 23261847f8eSopenharmony_ci * @returns { Promise<CommonEventSubscriber> } Returns the CommonEventSubscriber object. 23361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 23461847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 23561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 23661847f8eSopenharmony_ci * @crossplatform 23761847f8eSopenharmony_ci * @atomicservice 23861847f8eSopenharmony_ci * @since 11 23961847f8eSopenharmony_ci */ 24061847f8eSopenharmony_ci function createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise<CommonEventSubscriber>; 24161847f8eSopenharmony_ci 24261847f8eSopenharmony_ci /** 24361847f8eSopenharmony_ci * Creates a CommonEventSubscriber for the SubscriberInfo. 24461847f8eSopenharmony_ci * 24561847f8eSopenharmony_ci * @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber. 24661847f8eSopenharmony_ci * @returns { CommonEventSubscriber } Returns the CommonEventSubscriber object. 24761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 24861847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 24961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 25061847f8eSopenharmony_ci * @since 10 25161847f8eSopenharmony_ci */ 25261847f8eSopenharmony_ci /** 25361847f8eSopenharmony_ci * Creates a CommonEventSubscriber for the SubscriberInfo. 25461847f8eSopenharmony_ci * 25561847f8eSopenharmony_ci * @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber. 25661847f8eSopenharmony_ci * @returns { CommonEventSubscriber } Returns the CommonEventSubscriber object. 25761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 25861847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 25961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 26061847f8eSopenharmony_ci * @atomicservice 26161847f8eSopenharmony_ci * @since 11 26261847f8eSopenharmony_ci */ 26361847f8eSopenharmony_ci function createSubscriberSync(subscribeInfo: CommonEventSubscribeInfo): CommonEventSubscriber; 26461847f8eSopenharmony_ci 26561847f8eSopenharmony_ci /** 26661847f8eSopenharmony_ci * Subscribe an ordered, sticky, or standard common event. 26761847f8eSopenharmony_ci * 26861847f8eSopenharmony_ci * @param { CommonEventSubscriber } subscriber - Indicate the subscriber of the common event. 26961847f8eSopenharmony_ci * @param { AsyncCallback<CommonEventData> } callback - The callback is used to return the CommonEventData object. 27061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 27161847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 27261847f8eSopenharmony_ci * @throws { BusinessError } 801 - capability not supported 27361847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 27461847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 27561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 27661847f8eSopenharmony_ci * @since 9 27761847f8eSopenharmony_ci */ 27861847f8eSopenharmony_ci /** 27961847f8eSopenharmony_ci * Subscribe an ordered, sticky, or standard common event. 28061847f8eSopenharmony_ci * 28161847f8eSopenharmony_ci * @param { CommonEventSubscriber } subscriber - Indicate the subscriber of the common event. 28261847f8eSopenharmony_ci * @param { AsyncCallback<CommonEventData> } callback - The callback is used to return the CommonEventData object. 28361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 28461847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 28561847f8eSopenharmony_ci * @throws { BusinessError } 801 - capability not supported 28661847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 28761847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 28861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 28961847f8eSopenharmony_ci * @crossplatform 29061847f8eSopenharmony_ci * @atomicservice 29161847f8eSopenharmony_ci * @since 11 29261847f8eSopenharmony_ci */ 29361847f8eSopenharmony_ci function subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback<CommonEventData>): void; 29461847f8eSopenharmony_ci 29561847f8eSopenharmony_ci /** 29661847f8eSopenharmony_ci * Unsubscribe from an ordered, sticky, or standard common event. 29761847f8eSopenharmony_ci * 29861847f8eSopenharmony_ci * @param { CommonEventSubscriber } subscriber - Indicate the subscriber of the common event. 29961847f8eSopenharmony_ci * @param { AsyncCallback<void> } [callback] - The callback of unsubscribe. 30061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 30161847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 30261847f8eSopenharmony_ci * @throws { BusinessError } 801 - capability not supported 30361847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 30461847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 30561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 30661847f8eSopenharmony_ci * @since 9 30761847f8eSopenharmony_ci */ 30861847f8eSopenharmony_ci /** 30961847f8eSopenharmony_ci * Unsubscribe from an ordered, sticky, or standard common event. 31061847f8eSopenharmony_ci * 31161847f8eSopenharmony_ci * @param { CommonEventSubscriber } subscriber - Indicate the subscriber of the common event. 31261847f8eSopenharmony_ci * @param { AsyncCallback<void> } [callback] - The callback of unsubscribe. 31361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 31461847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 31561847f8eSopenharmony_ci * @throws { BusinessError } 801 - capability not supported 31661847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 31761847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 31861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 31961847f8eSopenharmony_ci * @crossplatform 32061847f8eSopenharmony_ci * @atomicservice 32161847f8eSopenharmony_ci * @since 11 32261847f8eSopenharmony_ci */ 32361847f8eSopenharmony_ci function unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback<void>): void; 32461847f8eSopenharmony_ci 32561847f8eSopenharmony_ci /** 32661847f8eSopenharmony_ci * Remove sticky common event. 32761847f8eSopenharmony_ci * 32861847f8eSopenharmony_ci * @permission ohos.permission.COMMONEVENT_STICKY 32961847f8eSopenharmony_ci * @param { string } event - name of the common event. 33061847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of removeStickyCommonEvent. 33161847f8eSopenharmony_ci * @throws { BusinessError } 201 - The application dose not have permission to call the interface 33261847f8eSopenharmony_ci * @throws { BusinessError } 202 - not system app 33361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 33461847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 33561847f8eSopenharmony_ci * @throws { BusinessError } 1500004 - cannot send system common events 33661847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 33761847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 33861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 33961847f8eSopenharmony_ci * @systemapi 34061847f8eSopenharmony_ci * @since 10 34161847f8eSopenharmony_ci */ 34261847f8eSopenharmony_ci function removeStickyCommonEvent(event: string, callback: AsyncCallback<void>): void; 34361847f8eSopenharmony_ci 34461847f8eSopenharmony_ci /** 34561847f8eSopenharmony_ci * Remove sticky common event. 34661847f8eSopenharmony_ci * 34761847f8eSopenharmony_ci * @permission ohos.permission.COMMONEVENT_STICKY 34861847f8eSopenharmony_ci * @param { string } event - name of the common event. 34961847f8eSopenharmony_ci * @returns { Promise<void> } the promise returned by the function. 35061847f8eSopenharmony_ci * @throws { BusinessError } 201 - The application dose not have permission to call the interface 35161847f8eSopenharmony_ci * @throws { BusinessError } 202 - not system app 35261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 35361847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 35461847f8eSopenharmony_ci * @throws { BusinessError } 1500004 - cannot send system common events 35561847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 35661847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 35761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 35861847f8eSopenharmony_ci * @systemapi 35961847f8eSopenharmony_ci * @since 10 36061847f8eSopenharmony_ci */ 36161847f8eSopenharmony_ci function removeStickyCommonEvent(event: string): Promise<void>; 36261847f8eSopenharmony_ci 36361847f8eSopenharmony_ci /** 36461847f8eSopenharmony_ci * Set static subscriber state. 36561847f8eSopenharmony_ci * 36661847f8eSopenharmony_ci * @param { boolean } enable - static subscribe event enable/disable state. 36761847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Specified callback method. 36861847f8eSopenharmony_ci * @throws { BusinessError } 202 - not system app 36961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 37061847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 37161847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 37261847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 37361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 37461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 37561847f8eSopenharmony_ci * @StageModelOnly 37661847f8eSopenharmony_ci * @since 10 37761847f8eSopenharmony_ci */ 37861847f8eSopenharmony_ci function setStaticSubscriberState(enable: boolean, callback: AsyncCallback<void>): void; 37961847f8eSopenharmony_ci 38061847f8eSopenharmony_ci /** 38161847f8eSopenharmony_ci * Set static subscriber state. 38261847f8eSopenharmony_ci * 38361847f8eSopenharmony_ci * @param { boolean } enable - static subscribe event enable/disable state. 38461847f8eSopenharmony_ci * @returns { Promise<void> } the promise returned by the function. 38561847f8eSopenharmony_ci * @throws { BusinessError } 202 - not system app 38661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 38761847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 38861847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 38961847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 39061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 39161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 39261847f8eSopenharmony_ci * @StageModelOnly 39361847f8eSopenharmony_ci * @since 10 39461847f8eSopenharmony_ci */ 39561847f8eSopenharmony_ci function setStaticSubscriberState(enable: boolean): Promise<void>; 39661847f8eSopenharmony_ci 39761847f8eSopenharmony_ci /** 39861847f8eSopenharmony_ci * Set static subscriber state. 39961847f8eSopenharmony_ci * 40061847f8eSopenharmony_ci * @param { boolean } enable - static subscribe event enable/disable state. 40161847f8eSopenharmony_ci * @param { Array<string> } events - The events array. 40261847f8eSopenharmony_ci * @returns { Promise<void> } the promise returned by the function. 40361847f8eSopenharmony_ci * @throws { BusinessError } 202 - not system app 40461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 40561847f8eSopenharmony_ci * <br>2. Incorrect parameter types. 3. Parameter verification failed. 40661847f8eSopenharmony_ci * @throws { BusinessError } 1500007 - error sending message to Common Event Service 40761847f8eSopenharmony_ci * @throws { BusinessError } 1500008 - Common Event Service does not complete initialization 40861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 40961847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 41061847f8eSopenharmony_ci * @StageModelOnly 41161847f8eSopenharmony_ci * @since 12 41261847f8eSopenharmony_ci */ 41361847f8eSopenharmony_ci function setStaticSubscriberState(enable: boolean, events?: Array<string>): Promise<void>; 41461847f8eSopenharmony_ci 41561847f8eSopenharmony_ci /** 41661847f8eSopenharmony_ci * The event type that the commonEvent supported. 41761847f8eSopenharmony_ci * 41861847f8eSopenharmony_ci * @enum { string } 41961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 42061847f8eSopenharmony_ci * @since 9 42161847f8eSopenharmony_ci */ 42261847f8eSopenharmony_ci /** 42361847f8eSopenharmony_ci * The event type that the commonEvent supported. 42461847f8eSopenharmony_ci * 42561847f8eSopenharmony_ci * @enum { string } 42661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 42761847f8eSopenharmony_ci * @atomicservice 42861847f8eSopenharmony_ci * @since 11 42961847f8eSopenharmony_ci */ 43061847f8eSopenharmony_ci export enum Support { 43161847f8eSopenharmony_ci /** 43261847f8eSopenharmony_ci * This commonEvent means when the device is booted or system upgrade completed, and only be sent by system. 43361847f8eSopenharmony_ci * This API can be called only by system applications. 43461847f8eSopenharmony_ci * 43561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 43661847f8eSopenharmony_ci * @since 9 43761847f8eSopenharmony_ci */ 43861847f8eSopenharmony_ci COMMON_EVENT_BOOT_COMPLETED = 'usual.event.BOOT_COMPLETED', 43961847f8eSopenharmony_ci 44061847f8eSopenharmony_ci /** 44161847f8eSopenharmony_ci * This commonEvent means when the device finnish booting, but still in the locked state. 44261847f8eSopenharmony_ci * 44361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 44461847f8eSopenharmony_ci * @since 9 44561847f8eSopenharmony_ci */ 44661847f8eSopenharmony_ci COMMON_EVENT_LOCKED_BOOT_COMPLETED = 'usual.event.LOCKED_BOOT_COMPLETED', 44761847f8eSopenharmony_ci 44861847f8eSopenharmony_ci /** 44961847f8eSopenharmony_ci * This commonEvent means when the device is shutting down, note: turn off, not sleeping. 45061847f8eSopenharmony_ci * 45161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 45261847f8eSopenharmony_ci * @since 9 45361847f8eSopenharmony_ci */ 45461847f8eSopenharmony_ci COMMON_EVENT_SHUTDOWN = 'usual.event.SHUTDOWN', 45561847f8eSopenharmony_ci 45661847f8eSopenharmony_ci /** 45761847f8eSopenharmony_ci * This commonEvent means when the charging state, level and so on about the battery. 45861847f8eSopenharmony_ci * 45961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 46061847f8eSopenharmony_ci * @since 9 46161847f8eSopenharmony_ci */ 46261847f8eSopenharmony_ci COMMON_EVENT_BATTERY_CHANGED = 'usual.event.BATTERY_CHANGED', 46361847f8eSopenharmony_ci 46461847f8eSopenharmony_ci /** 46561847f8eSopenharmony_ci * This commonEvent means when the device in low battery state.. 46661847f8eSopenharmony_ci * 46761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 46861847f8eSopenharmony_ci * @since 9 46961847f8eSopenharmony_ci */ 47061847f8eSopenharmony_ci COMMON_EVENT_BATTERY_LOW = 'usual.event.BATTERY_LOW', 47161847f8eSopenharmony_ci 47261847f8eSopenharmony_ci /** 47361847f8eSopenharmony_ci * This commonEvent means when the battery level is an ok state. 47461847f8eSopenharmony_ci * 47561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 47661847f8eSopenharmony_ci * @since 9 47761847f8eSopenharmony_ci */ 47861847f8eSopenharmony_ci COMMON_EVENT_BATTERY_OKAY = 'usual.event.BATTERY_OKAY', 47961847f8eSopenharmony_ci 48061847f8eSopenharmony_ci /** 48161847f8eSopenharmony_ci * This commonEvent means when the other power is connected to the device. 48261847f8eSopenharmony_ci * 48361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 48461847f8eSopenharmony_ci * @since 9 48561847f8eSopenharmony_ci */ 48661847f8eSopenharmony_ci COMMON_EVENT_POWER_CONNECTED = 'usual.event.POWER_CONNECTED', 48761847f8eSopenharmony_ci 48861847f8eSopenharmony_ci /** 48961847f8eSopenharmony_ci * This commonEvent means when the other power is removed from the device. 49061847f8eSopenharmony_ci * 49161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 49261847f8eSopenharmony_ci * @since 9 49361847f8eSopenharmony_ci */ 49461847f8eSopenharmony_ci COMMON_EVENT_POWER_DISCONNECTED = 'usual.event.POWER_DISCONNECTED', 49561847f8eSopenharmony_ci 49661847f8eSopenharmony_ci /** 49761847f8eSopenharmony_ci * This commonEvent means when the screen is turned off. 49861847f8eSopenharmony_ci * 49961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 50061847f8eSopenharmony_ci * @since 9 50161847f8eSopenharmony_ci */ 50261847f8eSopenharmony_ci COMMON_EVENT_SCREEN_OFF = 'usual.event.SCREEN_OFF', 50361847f8eSopenharmony_ci 50461847f8eSopenharmony_ci /** 50561847f8eSopenharmony_ci * This commonEvent means when the device is awakened and interactive. 50661847f8eSopenharmony_ci * 50761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 50861847f8eSopenharmony_ci * @since 9 50961847f8eSopenharmony_ci */ 51061847f8eSopenharmony_ci COMMON_EVENT_SCREEN_ON = 'usual.event.SCREEN_ON', 51161847f8eSopenharmony_ci 51261847f8eSopenharmony_ci /** 51361847f8eSopenharmony_ci * This commonEvent means when the thermal state level change 51461847f8eSopenharmony_ci * 51561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 51661847f8eSopenharmony_ci * @since 9 51761847f8eSopenharmony_ci */ 51861847f8eSopenharmony_ci COMMON_EVENT_THERMAL_LEVEL_CHANGED = 'usual.event.THERMAL_LEVEL_CHANGED', 51961847f8eSopenharmony_ci 52061847f8eSopenharmony_ci /** 52161847f8eSopenharmony_ci * This commonEvent means when the device is about to enter the force sleep mode 52261847f8eSopenharmony_ci * 52361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 52461847f8eSopenharmony_ci * @since 12 52561847f8eSopenharmony_ci */ 52661847f8eSopenharmony_ci COMMON_EVENT_ENTER_FORCE_SLEEP = 'usual.event.ENTER_FORCE_SLEEP', 52761847f8eSopenharmony_ci 52861847f8eSopenharmony_ci /** 52961847f8eSopenharmony_ci * This commonEvent means when the device exits the force sleep mode 53061847f8eSopenharmony_ci * 53161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 53261847f8eSopenharmony_ci * @since 12 53361847f8eSopenharmony_ci */ 53461847f8eSopenharmony_ci COMMON_EVENT_EXIT_FORCE_SLEEP = 'usual.event.EXIT_FORCE_SLEEP', 53561847f8eSopenharmony_ci 53661847f8eSopenharmony_ci /** 53761847f8eSopenharmony_ci * This commonEvent means when the user is present after the device is awakened. 53861847f8eSopenharmony_ci * 53961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 54061847f8eSopenharmony_ci * @since 9 54161847f8eSopenharmony_ci * @deprecated since 10 54261847f8eSopenharmony_ci */ 54361847f8eSopenharmony_ci COMMON_EVENT_USER_PRESENT = 'usual.event.USER_PRESENT', 54461847f8eSopenharmony_ci 54561847f8eSopenharmony_ci /** 54661847f8eSopenharmony_ci * This commonEvent means when the current time is changed. 54761847f8eSopenharmony_ci * 54861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 54961847f8eSopenharmony_ci * @since 9 55061847f8eSopenharmony_ci */ 55161847f8eSopenharmony_ci COMMON_EVENT_TIME_TICK = 'usual.event.TIME_TICK', 55261847f8eSopenharmony_ci 55361847f8eSopenharmony_ci /** 55461847f8eSopenharmony_ci * This commonEvent means when the time is set. 55561847f8eSopenharmony_ci * 55661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 55761847f8eSopenharmony_ci * @since 9 55861847f8eSopenharmony_ci */ 55961847f8eSopenharmony_ci COMMON_EVENT_TIME_CHANGED = 'usual.event.TIME_CHANGED', 56061847f8eSopenharmony_ci 56161847f8eSopenharmony_ci /** 56261847f8eSopenharmony_ci * This commonEvent means when the current date is changed. 56361847f8eSopenharmony_ci * 56461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 56561847f8eSopenharmony_ci * @since 9 56661847f8eSopenharmony_ci */ 56761847f8eSopenharmony_ci COMMON_EVENT_DATE_CHANGED = 'usual.event.DATE_CHANGED', 56861847f8eSopenharmony_ci 56961847f8eSopenharmony_ci /** 57061847f8eSopenharmony_ci * This commonEvent means when the time zone is changed. 57161847f8eSopenharmony_ci * 57261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 57361847f8eSopenharmony_ci * @since 9 57461847f8eSopenharmony_ci */ 57561847f8eSopenharmony_ci COMMON_EVENT_TIMEZONE_CHANGED = 'usual.event.TIMEZONE_CHANGED', 57661847f8eSopenharmony_ci 57761847f8eSopenharmony_ci /** 57861847f8eSopenharmony_ci * This commonEvent means when the dialog to dismiss. 57961847f8eSopenharmony_ci * 58061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 58161847f8eSopenharmony_ci * @since 9 58261847f8eSopenharmony_ci */ 58361847f8eSopenharmony_ci COMMON_EVENT_CLOSE_SYSTEM_DIALOGS = 'usual.event.CLOSE_SYSTEM_DIALOGS', 58461847f8eSopenharmony_ci 58561847f8eSopenharmony_ci /** 58661847f8eSopenharmony_ci * This commonEvent means when a new application package is installed on the device. 58761847f8eSopenharmony_ci * 58861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 58961847f8eSopenharmony_ci * @since 9 59061847f8eSopenharmony_ci */ 59161847f8eSopenharmony_ci COMMON_EVENT_PACKAGE_ADDED = 'usual.event.PACKAGE_ADDED', 59261847f8eSopenharmony_ci 59361847f8eSopenharmony_ci /** 59461847f8eSopenharmony_ci * This commonEvent means when a new version application package is installed on the device and 59561847f8eSopenharmony_ci * replace the old version.the data contains the name of the package. 59661847f8eSopenharmony_ci * 59761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 59861847f8eSopenharmony_ci * @since 9 59961847f8eSopenharmony_ci */ 60061847f8eSopenharmony_ci COMMON_EVENT_PACKAGE_REPLACED = 'usual.event.PACKAGE_REPLACED', 60161847f8eSopenharmony_ci 60261847f8eSopenharmony_ci /** 60361847f8eSopenharmony_ci * This commonEvent means when a new version application package is installed on the device and 60461847f8eSopenharmony_ci * replace the old version, it does not contain additional data and only be sent to the replaced application. 60561847f8eSopenharmony_ci * 60661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 60761847f8eSopenharmony_ci * @since 9 60861847f8eSopenharmony_ci */ 60961847f8eSopenharmony_ci COMMON_EVENT_MY_PACKAGE_REPLACED = 'usual.event.MY_PACKAGE_REPLACED', 61061847f8eSopenharmony_ci 61161847f8eSopenharmony_ci /** 61261847f8eSopenharmony_ci * This commonEvent means when an existing application package is removed from the device. 61361847f8eSopenharmony_ci * 61461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 61561847f8eSopenharmony_ci * @since 9 61661847f8eSopenharmony_ci */ 61761847f8eSopenharmony_ci COMMON_EVENT_PACKAGE_REMOVED = 'usual.event.PACKAGE_REMOVED', 61861847f8eSopenharmony_ci 61961847f8eSopenharmony_ci /** 62061847f8eSopenharmony_ci * This commonEvent means when an existing application package is removed from the device. 62161847f8eSopenharmony_ci * 62261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 62361847f8eSopenharmony_ci * @since 9 62461847f8eSopenharmony_ci */ 62561847f8eSopenharmony_ci COMMON_EVENT_BUNDLE_REMOVED = 'usual.event.BUNDLE_REMOVED', 62661847f8eSopenharmony_ci 62761847f8eSopenharmony_ci /** 62861847f8eSopenharmony_ci * This commonEvent means when an existing application package is completely removed from the device. 62961847f8eSopenharmony_ci * 63061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 63161847f8eSopenharmony_ci * @since 9 63261847f8eSopenharmony_ci */ 63361847f8eSopenharmony_ci COMMON_EVENT_PACKAGE_FULLY_REMOVED = 'usual.event.PACKAGE_FULLY_REMOVED', 63461847f8eSopenharmony_ci 63561847f8eSopenharmony_ci /** 63661847f8eSopenharmony_ci * This commonEvent means when an existing application package has been changed. 63761847f8eSopenharmony_ci * 63861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 63961847f8eSopenharmony_ci * @since 9 64061847f8eSopenharmony_ci */ 64161847f8eSopenharmony_ci COMMON_EVENT_PACKAGE_CHANGED = 'usual.event.PACKAGE_CHANGED', 64261847f8eSopenharmony_ci 64361847f8eSopenharmony_ci /** 64461847f8eSopenharmony_ci * This commonEvent means the user has restarted a package, and all of its processes have been killed. 64561847f8eSopenharmony_ci * 64661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 64761847f8eSopenharmony_ci * @since 9 64861847f8eSopenharmony_ci */ 64961847f8eSopenharmony_ci COMMON_EVENT_PACKAGE_RESTARTED = 'usual.event.PACKAGE_RESTARTED', 65061847f8eSopenharmony_ci 65161847f8eSopenharmony_ci /** 65261847f8eSopenharmony_ci * This commonEvent means the user has cleared the package data. 65361847f8eSopenharmony_ci * 65461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 65561847f8eSopenharmony_ci * @since 9 65661847f8eSopenharmony_ci */ 65761847f8eSopenharmony_ci COMMON_EVENT_PACKAGE_DATA_CLEARED = 'usual.event.PACKAGE_DATA_CLEARED', 65861847f8eSopenharmony_ci 65961847f8eSopenharmony_ci /** 66061847f8eSopenharmony_ci * This commonEvent means the user has cleared the package cache. 66161847f8eSopenharmony_ci * 66261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 66361847f8eSopenharmony_ci * @since 9 66461847f8eSopenharmony_ci */ 66561847f8eSopenharmony_ci COMMON_EVENT_PACKAGE_CACHE_CLEARED = 'usual.event.PACKAGE_CACHE_CLEARED', 66661847f8eSopenharmony_ci 66761847f8eSopenharmony_ci /** 66861847f8eSopenharmony_ci * This commonEvent means the packages have been suspended. 66961847f8eSopenharmony_ci * 67061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 67161847f8eSopenharmony_ci * @since 9 67261847f8eSopenharmony_ci */ 67361847f8eSopenharmony_ci COMMON_EVENT_PACKAGES_SUSPENDED = 'usual.event.PACKAGES_SUSPENDED', 67461847f8eSopenharmony_ci 67561847f8eSopenharmony_ci /** 67661847f8eSopenharmony_ci * This commonEvent means the packages have been un-suspended. 67761847f8eSopenharmony_ci * 67861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 67961847f8eSopenharmony_ci * @since 9 68061847f8eSopenharmony_ci */ 68161847f8eSopenharmony_ci COMMON_EVENT_PACKAGES_UNSUSPENDED = 'usual.event.PACKAGES_UNSUSPENDED', 68261847f8eSopenharmony_ci 68361847f8eSopenharmony_ci /** 68461847f8eSopenharmony_ci * This commonEvent Sent to a package that has been suspended by the system. 68561847f8eSopenharmony_ci * 68661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 68761847f8eSopenharmony_ci * @since 9 68861847f8eSopenharmony_ci */ 68961847f8eSopenharmony_ci COMMON_EVENT_MY_PACKAGE_SUSPENDED = 'usual.event.MY_PACKAGE_SUSPENDED', 69061847f8eSopenharmony_ci 69161847f8eSopenharmony_ci /** 69261847f8eSopenharmony_ci * Sent to a package that has been un-suspended. 69361847f8eSopenharmony_ci * 69461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 69561847f8eSopenharmony_ci * @since 9 69661847f8eSopenharmony_ci */ 69761847f8eSopenharmony_ci COMMON_EVENT_MY_PACKAGE_UNSUSPENDED = 'usual.event.MY_PACKAGE_UNSUSPENDED', 69861847f8eSopenharmony_ci 69961847f8eSopenharmony_ci /** 70061847f8eSopenharmony_ci * A user id has been removed from the system. 70161847f8eSopenharmony_ci * 70261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 70361847f8eSopenharmony_ci * @since 9 70461847f8eSopenharmony_ci */ 70561847f8eSopenharmony_ci COMMON_EVENT_UID_REMOVED = 'usual.event.UID_REMOVED', 70661847f8eSopenharmony_ci 70761847f8eSopenharmony_ci /** 70861847f8eSopenharmony_ci * The application is first launched after installed. 70961847f8eSopenharmony_ci * 71061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 71161847f8eSopenharmony_ci * @since 9 71261847f8eSopenharmony_ci */ 71361847f8eSopenharmony_ci COMMON_EVENT_PACKAGE_FIRST_LAUNCH = 'usual.event.PACKAGE_FIRST_LAUNCH', 71461847f8eSopenharmony_ci 71561847f8eSopenharmony_ci /** 71661847f8eSopenharmony_ci * Sent by system package verifier when a package need to be verified. 71761847f8eSopenharmony_ci * 71861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 71961847f8eSopenharmony_ci * @since 9 72061847f8eSopenharmony_ci */ 72161847f8eSopenharmony_ci COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION = 'usual.event.PACKAGE_NEEDS_VERIFICATION', 72261847f8eSopenharmony_ci 72361847f8eSopenharmony_ci /** 72461847f8eSopenharmony_ci * Sent by system package verifier when a package is verified. 72561847f8eSopenharmony_ci * 72661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 72761847f8eSopenharmony_ci * @since 9 72861847f8eSopenharmony_ci */ 72961847f8eSopenharmony_ci COMMON_EVENT_PACKAGE_VERIFIED = 'usual.event.PACKAGE_VERIFIED', 73061847f8eSopenharmony_ci 73161847f8eSopenharmony_ci /** 73261847f8eSopenharmony_ci * Resources for a set of packages (which were previously unavailable) are currently 73361847f8eSopenharmony_ci * available since the media on which they exist is available. 73461847f8eSopenharmony_ci * 73561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 73661847f8eSopenharmony_ci * @since 9 73761847f8eSopenharmony_ci */ 73861847f8eSopenharmony_ci COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE = 'usual.event.EXTERNAL_APPLICATIONS_AVAILABLE', 73961847f8eSopenharmony_ci 74061847f8eSopenharmony_ci /** 74161847f8eSopenharmony_ci * Resources for a set of packages are currently unavailable since the media on which they exist is unavailable. 74261847f8eSopenharmony_ci * 74361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 74461847f8eSopenharmony_ci * @since 9 74561847f8eSopenharmony_ci */ 74661847f8eSopenharmony_ci COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE = 'usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE', 74761847f8eSopenharmony_ci 74861847f8eSopenharmony_ci /** 74961847f8eSopenharmony_ci * The device configuration such as orientation,locale have been changed. 75061847f8eSopenharmony_ci * 75161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 75261847f8eSopenharmony_ci * @since 9 75361847f8eSopenharmony_ci */ 75461847f8eSopenharmony_ci COMMON_EVENT_CONFIGURATION_CHANGED = 'usual.event.CONFIGURATION_CHANGED', 75561847f8eSopenharmony_ci 75661847f8eSopenharmony_ci /** 75761847f8eSopenharmony_ci * The current device's locale has changed. 75861847f8eSopenharmony_ci * 75961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 76061847f8eSopenharmony_ci * @since 9 76161847f8eSopenharmony_ci */ 76261847f8eSopenharmony_ci COMMON_EVENT_LOCALE_CHANGED = 'usual.event.LOCALE_CHANGED', 76361847f8eSopenharmony_ci 76461847f8eSopenharmony_ci /** 76561847f8eSopenharmony_ci * Indicates low memory condition notification acknowledged by user and package management should be started. 76661847f8eSopenharmony_ci * 76761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 76861847f8eSopenharmony_ci * @since 9 76961847f8eSopenharmony_ci */ 77061847f8eSopenharmony_ci COMMON_EVENT_MANAGE_PACKAGE_STORAGE = 'usual.event.MANAGE_PACKAGE_STORAGE', 77161847f8eSopenharmony_ci 77261847f8eSopenharmony_ci /** 77361847f8eSopenharmony_ci * Send by the smart function when the system in drive mode. 77461847f8eSopenharmony_ci * 77561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 77661847f8eSopenharmony_ci * @since 9 77761847f8eSopenharmony_ci */ 77861847f8eSopenharmony_ci COMMON_EVENT_DRIVE_MODE = 'common.event.DRIVE_MODE', 77961847f8eSopenharmony_ci 78061847f8eSopenharmony_ci /** 78161847f8eSopenharmony_ci * Send by the smart function when the system in home mode. 78261847f8eSopenharmony_ci * 78361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 78461847f8eSopenharmony_ci * @since 9 78561847f8eSopenharmony_ci */ 78661847f8eSopenharmony_ci COMMON_EVENT_HOME_MODE = 'common.event.HOME_MODE', 78761847f8eSopenharmony_ci 78861847f8eSopenharmony_ci /** 78961847f8eSopenharmony_ci * Send by the smart function when the system in office mode. 79061847f8eSopenharmony_ci * 79161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 79261847f8eSopenharmony_ci * @since 9 79361847f8eSopenharmony_ci */ 79461847f8eSopenharmony_ci COMMON_EVENT_OFFICE_MODE = 'common.event.OFFICE_MODE', 79561847f8eSopenharmony_ci 79661847f8eSopenharmony_ci /** 79761847f8eSopenharmony_ci * Remind new user of preparing to start. 79861847f8eSopenharmony_ci * 79961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 80061847f8eSopenharmony_ci * @since 9 80161847f8eSopenharmony_ci */ 80261847f8eSopenharmony_ci COMMON_EVENT_USER_STARTED = 'usual.event.USER_STARTED', 80361847f8eSopenharmony_ci 80461847f8eSopenharmony_ci /** 80561847f8eSopenharmony_ci * Remind previous user of that the service has been the background. 80661847f8eSopenharmony_ci * 80761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 80861847f8eSopenharmony_ci * @since 9 80961847f8eSopenharmony_ci */ 81061847f8eSopenharmony_ci COMMON_EVENT_USER_BACKGROUND = 'usual.event.USER_BACKGROUND', 81161847f8eSopenharmony_ci 81261847f8eSopenharmony_ci /** 81361847f8eSopenharmony_ci * Remind new user of that the service has been the foreground. 81461847f8eSopenharmony_ci * 81561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 81661847f8eSopenharmony_ci * @since 9 81761847f8eSopenharmony_ci */ 81861847f8eSopenharmony_ci COMMON_EVENT_USER_FOREGROUND = 'usual.event.USER_FOREGROUND', 81961847f8eSopenharmony_ci 82061847f8eSopenharmony_ci /** 82161847f8eSopenharmony_ci * Remind new user of that the service has been switched to new user. 82261847f8eSopenharmony_ci * 82361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 82461847f8eSopenharmony_ci * This API can be called only by system applications. 82561847f8eSopenharmony_ci * @since 9 82661847f8eSopenharmony_ci */ 82761847f8eSopenharmony_ci COMMON_EVENT_USER_SWITCHED = 'usual.event.USER_SWITCHED', 82861847f8eSopenharmony_ci 82961847f8eSopenharmony_ci /** 83061847f8eSopenharmony_ci * Remind new user of that the service has been starting. 83161847f8eSopenharmony_ci * 83261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 83361847f8eSopenharmony_ci * This API can be called only by system applications. 83461847f8eSopenharmony_ci * @since 9 83561847f8eSopenharmony_ci */ 83661847f8eSopenharmony_ci COMMON_EVENT_USER_STARTING = 'usual.event.USER_STARTING', 83761847f8eSopenharmony_ci 83861847f8eSopenharmony_ci /** 83961847f8eSopenharmony_ci * Remind new user of that the service has been unlocked. 84061847f8eSopenharmony_ci * 84161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 84261847f8eSopenharmony_ci * @since 9 84361847f8eSopenharmony_ci */ 84461847f8eSopenharmony_ci COMMON_EVENT_USER_UNLOCKED = 'usual.event.USER_UNLOCKED', 84561847f8eSopenharmony_ci 84661847f8eSopenharmony_ci /** 84761847f8eSopenharmony_ci * Remind new user of that the service has been stopping. 84861847f8eSopenharmony_ci * 84961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 85061847f8eSopenharmony_ci * This API can be called only by system applications. 85161847f8eSopenharmony_ci * @since 9 85261847f8eSopenharmony_ci */ 85361847f8eSopenharmony_ci COMMON_EVENT_USER_STOPPING = 'usual.event.USER_STOPPING', 85461847f8eSopenharmony_ci 85561847f8eSopenharmony_ci /** 85661847f8eSopenharmony_ci * Remind new user of that the service has stopped. 85761847f8eSopenharmony_ci * 85861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 85961847f8eSopenharmony_ci * @since 9 86061847f8eSopenharmony_ci */ 86161847f8eSopenharmony_ci COMMON_EVENT_USER_STOPPED = 'usual.event.USER_STOPPED', 86261847f8eSopenharmony_ci 86361847f8eSopenharmony_ci /** 86461847f8eSopenharmony_ci * Distributed account login successfully. 86561847f8eSopenharmony_ci * 86661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 86761847f8eSopenharmony_ci * @since 9 86861847f8eSopenharmony_ci */ 86961847f8eSopenharmony_ci /** 87061847f8eSopenharmony_ci * Distributed account login successfully. 87161847f8eSopenharmony_ci * 87261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 87361847f8eSopenharmony_ci * @atomicservice 87461847f8eSopenharmony_ci * @since 12 87561847f8eSopenharmony_ci */ 87661847f8eSopenharmony_ci COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN = 'common.event.DISTRIBUTED_ACCOUNT_LOGIN', 87761847f8eSopenharmony_ci 87861847f8eSopenharmony_ci /** 87961847f8eSopenharmony_ci * Distributed account logout successfully. 88061847f8eSopenharmony_ci * 88161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 88261847f8eSopenharmony_ci * @since 9 88361847f8eSopenharmony_ci */ 88461847f8eSopenharmony_ci /** 88561847f8eSopenharmony_ci * Distributed account logout successfully. 88661847f8eSopenharmony_ci * 88761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 88861847f8eSopenharmony_ci * @atomicservice 88961847f8eSopenharmony_ci * @since 12 89061847f8eSopenharmony_ci */ 89161847f8eSopenharmony_ci COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT = 'common.event.DISTRIBUTED_ACCOUNT_LOGOUT', 89261847f8eSopenharmony_ci 89361847f8eSopenharmony_ci /** 89461847f8eSopenharmony_ci * Distributed account is invalid. 89561847f8eSopenharmony_ci * 89661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 89761847f8eSopenharmony_ci * @since 9 89861847f8eSopenharmony_ci */ 89961847f8eSopenharmony_ci /** 90061847f8eSopenharmony_ci * Distributed account is invalid. 90161847f8eSopenharmony_ci * 90261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 90361847f8eSopenharmony_ci * @atomicservice 90461847f8eSopenharmony_ci * @since 12 90561847f8eSopenharmony_ci */ 90661847f8eSopenharmony_ci COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID = 'common.event.DISTRIBUTED_ACCOUNT_TOKEN_INVALID', 90761847f8eSopenharmony_ci 90861847f8eSopenharmony_ci /** 90961847f8eSopenharmony_ci * Distributed account logs off. 91061847f8eSopenharmony_ci * 91161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 91261847f8eSopenharmony_ci * @since 9 91361847f8eSopenharmony_ci */ 91461847f8eSopenharmony_ci /** 91561847f8eSopenharmony_ci * Distributed account logs off. 91661847f8eSopenharmony_ci * 91761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 91861847f8eSopenharmony_ci * @atomicservice 91961847f8eSopenharmony_ci * @since 12 92061847f8eSopenharmony_ci */ 92161847f8eSopenharmony_ci COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF = 'common.event.DISTRIBUTED_ACCOUNT_LOGOFF', 92261847f8eSopenharmony_ci 92361847f8eSopenharmony_ci /** 92461847f8eSopenharmony_ci * WIFI state. 92561847f8eSopenharmony_ci * 92661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 92761847f8eSopenharmony_ci * @since 9 92861847f8eSopenharmony_ci */ 92961847f8eSopenharmony_ci COMMON_EVENT_WIFI_POWER_STATE = 'usual.event.wifi.POWER_STATE', 93061847f8eSopenharmony_ci 93161847f8eSopenharmony_ci /** 93261847f8eSopenharmony_ci * WIFI scan results. 93361847f8eSopenharmony_ci * 93461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 93561847f8eSopenharmony_ci * @since 9 93661847f8eSopenharmony_ci */ 93761847f8eSopenharmony_ci COMMON_EVENT_WIFI_SCAN_FINISHED = 'usual.event.wifi.SCAN_FINISHED', 93861847f8eSopenharmony_ci 93961847f8eSopenharmony_ci /** 94061847f8eSopenharmony_ci * WIFI RSSI change. 94161847f8eSopenharmony_ci * 94261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 94361847f8eSopenharmony_ci * @since 9 94461847f8eSopenharmony_ci */ 94561847f8eSopenharmony_ci COMMON_EVENT_WIFI_RSSI_VALUE = 'usual.event.wifi.RSSI_VALUE', 94661847f8eSopenharmony_ci 94761847f8eSopenharmony_ci /** 94861847f8eSopenharmony_ci * WIFI connect state. 94961847f8eSopenharmony_ci * 95061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 95161847f8eSopenharmony_ci * @since 9 95261847f8eSopenharmony_ci */ 95361847f8eSopenharmony_ci COMMON_EVENT_WIFI_CONN_STATE = 'usual.event.wifi.CONN_STATE', 95461847f8eSopenharmony_ci 95561847f8eSopenharmony_ci /** 95661847f8eSopenharmony_ci * WIFI hotspot state. 95761847f8eSopenharmony_ci * 95861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 95961847f8eSopenharmony_ci * @since 9 96061847f8eSopenharmony_ci */ 96161847f8eSopenharmony_ci COMMON_EVENT_WIFI_HOTSPOT_STATE = 'usual.event.wifi.HOTSPOT_STATE', 96261847f8eSopenharmony_ci 96361847f8eSopenharmony_ci /** 96461847f8eSopenharmony_ci * WIFI ap sta join. 96561847f8eSopenharmony_ci * 96661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 96761847f8eSopenharmony_ci * @since 9 96861847f8eSopenharmony_ci */ 96961847f8eSopenharmony_ci COMMON_EVENT_WIFI_AP_STA_JOIN = 'usual.event.wifi.WIFI_HS_STA_JOIN', 97061847f8eSopenharmony_ci 97161847f8eSopenharmony_ci /** 97261847f8eSopenharmony_ci * WIFI ap sta join. 97361847f8eSopenharmony_ci * 97461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 97561847f8eSopenharmony_ci * @since 9 97661847f8eSopenharmony_ci */ 97761847f8eSopenharmony_ci COMMON_EVENT_WIFI_AP_STA_LEAVE = 'usual.event.wifi.WIFI_HS_STA_LEAVE', 97861847f8eSopenharmony_ci 97961847f8eSopenharmony_ci /** 98061847f8eSopenharmony_ci * Indicates Wi-Fi MpLink state notification acknowledged by binding or unbinding MpLink. 98161847f8eSopenharmony_ci * 98261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 98361847f8eSopenharmony_ci * @since 9 98461847f8eSopenharmony_ci */ 98561847f8eSopenharmony_ci COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE = 'usual.event.wifi.mplink.STATE_CHANGE', 98661847f8eSopenharmony_ci 98761847f8eSopenharmony_ci /** 98861847f8eSopenharmony_ci * Indicates Wi-Fi P2P connection state notification acknowledged by connecting or disconnected P2P. 98961847f8eSopenharmony_ci * 99061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 99161847f8eSopenharmony_ci * @since 9 99261847f8eSopenharmony_ci */ 99361847f8eSopenharmony_ci COMMON_EVENT_WIFI_P2P_CONN_STATE = 'usual.event.wifi.p2p.CONN_STATE_CHANGE', 99461847f8eSopenharmony_ci 99561847f8eSopenharmony_ci /** 99661847f8eSopenharmony_ci * Indicates that the Wi-Fi P2P state change. 99761847f8eSopenharmony_ci * 99861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 99961847f8eSopenharmony_ci * @since 9 100061847f8eSopenharmony_ci */ 100161847f8eSopenharmony_ci COMMON_EVENT_WIFI_P2P_STATE_CHANGED = 'usual.event.wifi.p2p.STATE_CHANGE', 100261847f8eSopenharmony_ci 100361847f8eSopenharmony_ci /** 100461847f8eSopenharmony_ci * Indicates that the Wi-Fi P2P peers state change. 100561847f8eSopenharmony_ci * 100661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 100761847f8eSopenharmony_ci * @since 9 100861847f8eSopenharmony_ci */ 100961847f8eSopenharmony_ci COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED = 'usual.event.wifi.p2p.DEVICES_CHANGE', 101061847f8eSopenharmony_ci 101161847f8eSopenharmony_ci /** 101261847f8eSopenharmony_ci * Indicates that the Wi-Fi P2P discovery state change. 101361847f8eSopenharmony_ci * 101461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 101561847f8eSopenharmony_ci * @since 9 101661847f8eSopenharmony_ci */ 101761847f8eSopenharmony_ci COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED = 'usual.event.wifi.p2p.PEER_DISCOVERY_STATE_CHANGE', 101861847f8eSopenharmony_ci 101961847f8eSopenharmony_ci /** 102061847f8eSopenharmony_ci * Indicates that the Wi-Fi P2P current device state change. 102161847f8eSopenharmony_ci * 102261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 102361847f8eSopenharmony_ci * @since 9 102461847f8eSopenharmony_ci */ 102561847f8eSopenharmony_ci COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED = 'usual.event.wifi.p2p.CURRENT_DEVICE_CHANGE', 102661847f8eSopenharmony_ci 102761847f8eSopenharmony_ci /** 102861847f8eSopenharmony_ci * Indicates that the Wi-Fi P2P group info is changed. 102961847f8eSopenharmony_ci * 103061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 103161847f8eSopenharmony_ci * @since 9 103261847f8eSopenharmony_ci */ 103361847f8eSopenharmony_ci COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED = 'usual.event.wifi.p2p.GROUP_STATE_CHANGED', 103461847f8eSopenharmony_ci 103561847f8eSopenharmony_ci /** 103661847f8eSopenharmony_ci * Bluetooth.handsfree.ag.connect.state.update. 103761847f8eSopenharmony_ci * 103861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 103961847f8eSopenharmony_ci * @since 9 104061847f8eSopenharmony_ci */ 104161847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE', 104261847f8eSopenharmony_ci 104361847f8eSopenharmony_ci /** 104461847f8eSopenharmony_ci * Bluetooth.handsfree.ag.current.device.update. 104561847f8eSopenharmony_ci * 104661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 104761847f8eSopenharmony_ci * @since 9 104861847f8eSopenharmony_ci */ 104961847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE = 'usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE', 105061847f8eSopenharmony_ci 105161847f8eSopenharmony_ci /** 105261847f8eSopenharmony_ci * Bluetooth.handsfree.ag.audio.state.update. 105361847f8eSopenharmony_ci * 105461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 105561847f8eSopenharmony_ci * @since 9 105661847f8eSopenharmony_ci */ 105761847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE = 'usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE', 105861847f8eSopenharmony_ci 105961847f8eSopenharmony_ci /** 106061847f8eSopenharmony_ci * Bluetooth.a2dpsource.connect.state.update. 106161847f8eSopenharmony_ci * 106261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 106361847f8eSopenharmony_ci * @since 9 106461847f8eSopenharmony_ci */ 106561847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE', 106661847f8eSopenharmony_ci 106761847f8eSopenharmony_ci /** 106861847f8eSopenharmony_ci * Bluetooth.a2dpsource.current.device.update. 106961847f8eSopenharmony_ci * 107061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 107161847f8eSopenharmony_ci * @since 9 107261847f8eSopenharmony_ci */ 107361847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE = 'usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE', 107461847f8eSopenharmony_ci 107561847f8eSopenharmony_ci /** 107661847f8eSopenharmony_ci * Bluetooth.a2dpsource.playing.state.update. 107761847f8eSopenharmony_ci * 107861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 107961847f8eSopenharmony_ci * @since 9 108061847f8eSopenharmony_ci */ 108161847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE = 'usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE', 108261847f8eSopenharmony_ci 108361847f8eSopenharmony_ci /** 108461847f8eSopenharmony_ci * Bluetooth.a2dpsource.avrcp.connect.state.update. 108561847f8eSopenharmony_ci * 108661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 108761847f8eSopenharmony_ci * @since 9 108861847f8eSopenharmony_ci */ 108961847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE', 109061847f8eSopenharmony_ci 109161847f8eSopenharmony_ci /** 109261847f8eSopenharmony_ci * Bluetooth.a2dpsource.codec.value.update. 109361847f8eSopenharmony_ci * 109461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 109561847f8eSopenharmony_ci * @since 9 109661847f8eSopenharmony_ci */ 109761847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE = 'usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE', 109861847f8eSopenharmony_ci 109961847f8eSopenharmony_ci /** 110061847f8eSopenharmony_ci * Bluetooth.remotedevice.discovered. 110161847f8eSopenharmony_ci * 110261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 110361847f8eSopenharmony_ci * @since 9 110461847f8eSopenharmony_ci */ 110561847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED = 'usual.event.bluetooth.remotedevice.DISCOVERED', 110661847f8eSopenharmony_ci 110761847f8eSopenharmony_ci /** 110861847f8eSopenharmony_ci * Bluetooth.remotedevice.class.value.update. 110961847f8eSopenharmony_ci * 111061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 111161847f8eSopenharmony_ci * @since 9 111261847f8eSopenharmony_ci */ 111361847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE = 'usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE', 111461847f8eSopenharmony_ci 111561847f8eSopenharmony_ci /** 111661847f8eSopenharmony_ci * Bluetooth.remotedevice.acl.connected. 111761847f8eSopenharmony_ci * 111861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 111961847f8eSopenharmony_ci * @since 9 112061847f8eSopenharmony_ci */ 112161847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED = 'usual.event.bluetooth.remotedevice.ACL_CONNECTED', 112261847f8eSopenharmony_ci 112361847f8eSopenharmony_ci /** 112461847f8eSopenharmony_ci * Bluetooth.remotedevice.acl.disconnected. 112561847f8eSopenharmony_ci * 112661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 112761847f8eSopenharmony_ci * @since 9 112861847f8eSopenharmony_ci */ 112961847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED = 'usual.event.bluetooth.remotedevice.ACL_DISCONNECTED', 113061847f8eSopenharmony_ci 113161847f8eSopenharmony_ci /** 113261847f8eSopenharmony_ci * Bluetooth.remotedevice.name.update. 113361847f8eSopenharmony_ci * 113461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 113561847f8eSopenharmony_ci * @since 9 113661847f8eSopenharmony_ci */ 113761847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE = 'usual.event.bluetooth.remotedevice.NAME_UPDATE', 113861847f8eSopenharmony_ci 113961847f8eSopenharmony_ci /** 114061847f8eSopenharmony_ci * Bluetooth.remotedevice.pair.state. 114161847f8eSopenharmony_ci * 114261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 114361847f8eSopenharmony_ci * @since 9 114461847f8eSopenharmony_ci */ 114561847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE = 'usual.event.bluetooth.remotedevice.PAIR_STATE', 114661847f8eSopenharmony_ci 114761847f8eSopenharmony_ci /** 114861847f8eSopenharmony_ci * Bluetooth.remotedevice.battery.value.update. 114961847f8eSopenharmony_ci * 115061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 115161847f8eSopenharmony_ci * @since 9 115261847f8eSopenharmony_ci */ 115361847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE = 'usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE', 115461847f8eSopenharmony_ci 115561847f8eSopenharmony_ci /** 115661847f8eSopenharmony_ci * Bluetooth.remotedevice.sdp.result. 115761847f8eSopenharmony_ci * 115861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 115961847f8eSopenharmony_ci * @since 9 116061847f8eSopenharmony_ci */ 116161847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT = 'usual.event.bluetooth.remotedevice.SDP_RESULT', 116261847f8eSopenharmony_ci 116361847f8eSopenharmony_ci /** 116461847f8eSopenharmony_ci * Bluetooth.remotedevice.uuid.value. 116561847f8eSopenharmony_ci * 116661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 116761847f8eSopenharmony_ci * @since 9 116861847f8eSopenharmony_ci */ 116961847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE = 'usual.event.bluetooth.remotedevice.UUID_VALUE', 117061847f8eSopenharmony_ci 117161847f8eSopenharmony_ci /** 117261847f8eSopenharmony_ci * Bluetooth.remotedevice.pairing.req. 117361847f8eSopenharmony_ci * 117461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 117561847f8eSopenharmony_ci * @since 9 117661847f8eSopenharmony_ci */ 117761847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ = 'usual.event.bluetooth.remotedevice.PAIRING_REQ', 117861847f8eSopenharmony_ci 117961847f8eSopenharmony_ci /** 118061847f8eSopenharmony_ci * Bluetooth.remotedevice.pairing.cancel. 118161847f8eSopenharmony_ci * 118261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 118361847f8eSopenharmony_ci * @since 9 118461847f8eSopenharmony_ci */ 118561847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL = 'usual.event.bluetooth.remotedevice.PAIRING_CANCEL', 118661847f8eSopenharmony_ci 118761847f8eSopenharmony_ci /** 118861847f8eSopenharmony_ci * Bluetooth.remotedevice.connect.req. 118961847f8eSopenharmony_ci * 119061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 119161847f8eSopenharmony_ci * @since 9 119261847f8eSopenharmony_ci */ 119361847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ = 'usual.event.bluetooth.remotedevice.CONNECT_REQ', 119461847f8eSopenharmony_ci 119561847f8eSopenharmony_ci /** 119661847f8eSopenharmony_ci * Bluetooth.remotedevice.connect.reply. 119761847f8eSopenharmony_ci * 119861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 119961847f8eSopenharmony_ci * @since 9 120061847f8eSopenharmony_ci */ 120161847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY = 'usual.event.bluetooth.remotedevice.CONNECT_REPLY', 120261847f8eSopenharmony_ci 120361847f8eSopenharmony_ci /** 120461847f8eSopenharmony_ci * Bluetooth.remotedevice.connect.cancel. 120561847f8eSopenharmony_ci * 120661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 120761847f8eSopenharmony_ci * @since 9 120861847f8eSopenharmony_ci */ 120961847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL = 'usual.event.bluetooth.remotedevice.CONNECT_CANCEL', 121061847f8eSopenharmony_ci 121161847f8eSopenharmony_ci /** 121261847f8eSopenharmony_ci * Bluetooth.handsfreeunit.connect.state.update. 121361847f8eSopenharmony_ci * 121461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 121561847f8eSopenharmony_ci * @since 9 121661847f8eSopenharmony_ci */ 121761847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE', 121861847f8eSopenharmony_ci 121961847f8eSopenharmony_ci /** 122061847f8eSopenharmony_ci * Bluetooth.handsfreeunit.audio.state.update. 122161847f8eSopenharmony_ci * 122261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 122361847f8eSopenharmony_ci * @since 9 122461847f8eSopenharmony_ci */ 122561847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE = 'usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE', 122661847f8eSopenharmony_ci 122761847f8eSopenharmony_ci /** 122861847f8eSopenharmony_ci * Bluetooth.handsfreeunit.ag.common.event. 122961847f8eSopenharmony_ci * 123061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 123161847f8eSopenharmony_ci * @since 9 123261847f8eSopenharmony_ci */ 123361847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT = 'usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT', 123461847f8eSopenharmony_ci 123561847f8eSopenharmony_ci /** 123661847f8eSopenharmony_ci * Bluetooth.handsfreeunit.ag.call.state.update. 123761847f8eSopenharmony_ci * 123861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 123961847f8eSopenharmony_ci * @since 9 124061847f8eSopenharmony_ci */ 124161847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE = 'usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE', 124261847f8eSopenharmony_ci 124361847f8eSopenharmony_ci /** 124461847f8eSopenharmony_ci * Bluetooth.host.state.update. 124561847f8eSopenharmony_ci * 124661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 124761847f8eSopenharmony_ci * @since 9 124861847f8eSopenharmony_ci */ 124961847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE = 'usual.event.bluetooth.host.STATE_UPDATE', 125061847f8eSopenharmony_ci 125161847f8eSopenharmony_ci /** 125261847f8eSopenharmony_ci * Bluetooth.host.req.discoverable. 125361847f8eSopenharmony_ci * 125461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 125561847f8eSopenharmony_ci * @since 9 125661847f8eSopenharmony_ci */ 125761847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE = 'usual.event.bluetooth.host.REQ_DISCOVERABLE', 125861847f8eSopenharmony_ci 125961847f8eSopenharmony_ci /** 126061847f8eSopenharmony_ci * Bluetooth.host.req.enable. 126161847f8eSopenharmony_ci * 126261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 126361847f8eSopenharmony_ci * @since 9 126461847f8eSopenharmony_ci */ 126561847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE = 'usual.event.bluetooth.host.REQ_ENABLE', 126661847f8eSopenharmony_ci 126761847f8eSopenharmony_ci /** 126861847f8eSopenharmony_ci * Bluetooth.host.req.disable. 126961847f8eSopenharmony_ci * 127061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 127161847f8eSopenharmony_ci * @since 9 127261847f8eSopenharmony_ci */ 127361847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE = 'usual.event.bluetooth.host.REQ_DISABLE', 127461847f8eSopenharmony_ci 127561847f8eSopenharmony_ci /** 127661847f8eSopenharmony_ci * Bluetooth.host.scan.mode.update. 127761847f8eSopenharmony_ci * 127861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 127961847f8eSopenharmony_ci * @since 9 128061847f8eSopenharmony_ci */ 128161847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE = 'usual.event.bluetooth.host.SCAN_MODE_UPDATE', 128261847f8eSopenharmony_ci 128361847f8eSopenharmony_ci /** 128461847f8eSopenharmony_ci * Bluetooth.host.discovery.stated. 128561847f8eSopenharmony_ci * 128661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 128761847f8eSopenharmony_ci * @since 9 128861847f8eSopenharmony_ci */ 128961847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED = 'usual.event.bluetooth.host.DISCOVERY_STARTED', 129061847f8eSopenharmony_ci 129161847f8eSopenharmony_ci /** 129261847f8eSopenharmony_ci * Bluetooth.host.discovery.finished. 129361847f8eSopenharmony_ci * 129461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 129561847f8eSopenharmony_ci * @since 9 129661847f8eSopenharmony_ci */ 129761847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED = 'usual.event.bluetooth.host.DISCOVERY_FINISHED', 129861847f8eSopenharmony_ci 129961847f8eSopenharmony_ci /** 130061847f8eSopenharmony_ci * Bluetooth.host.name.update. 130161847f8eSopenharmony_ci * 130261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 130361847f8eSopenharmony_ci * @since 9 130461847f8eSopenharmony_ci */ 130561847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE = 'usual.event.bluetooth.host.NAME_UPDATE', 130661847f8eSopenharmony_ci 130761847f8eSopenharmony_ci /** 130861847f8eSopenharmony_ci * Bluetooth.a2dp.connect.state.update. 130961847f8eSopenharmony_ci * 131061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 131161847f8eSopenharmony_ci * @since 9 131261847f8eSopenharmony_ci */ 131361847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE = 'usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE', 131461847f8eSopenharmony_ci 131561847f8eSopenharmony_ci /** 131661847f8eSopenharmony_ci * Bluetooth.a2dp.playing.state.update. 131761847f8eSopenharmony_ci * 131861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 131961847f8eSopenharmony_ci * @since 9 132061847f8eSopenharmony_ci */ 132161847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE = 'usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE', 132261847f8eSopenharmony_ci 132361847f8eSopenharmony_ci /** 132461847f8eSopenharmony_ci * Bluetooth.a2dp.audio.state.update. 132561847f8eSopenharmony_ci * 132661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 132761847f8eSopenharmony_ci * @since 9 132861847f8eSopenharmony_ci */ 132961847f8eSopenharmony_ci COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE = 'usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE', 133061847f8eSopenharmony_ci 133161847f8eSopenharmony_ci /** 133261847f8eSopenharmony_ci * Nfc state change. 133361847f8eSopenharmony_ci * 133461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 133561847f8eSopenharmony_ci * @since 9 133661847f8eSopenharmony_ci */ 133761847f8eSopenharmony_ci COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED = 'usual.event.nfc.action.ADAPTER_STATE_CHANGED', 133861847f8eSopenharmony_ci 133961847f8eSopenharmony_ci /** 134061847f8eSopenharmony_ci * Nfc field on detected. 134161847f8eSopenharmony_ci * 134261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 134361847f8eSopenharmony_ci * @since 9 134461847f8eSopenharmony_ci */ 134561847f8eSopenharmony_ci COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED = 'usual.event.nfc.action.RF_FIELD_ON_DETECTED', 134661847f8eSopenharmony_ci 134761847f8eSopenharmony_ci /** 134861847f8eSopenharmony_ci * Nfc field off detected. 134961847f8eSopenharmony_ci * 135061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 135161847f8eSopenharmony_ci * @since 9 135261847f8eSopenharmony_ci */ 135361847f8eSopenharmony_ci COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED = 'usual.event.nfc.action.RF_FIELD_OFF_DETECTED', 135461847f8eSopenharmony_ci 135561847f8eSopenharmony_ci /** 135661847f8eSopenharmony_ci * Sent when stop charging battery. 135761847f8eSopenharmony_ci * 135861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 135961847f8eSopenharmony_ci * @since 9 136061847f8eSopenharmony_ci */ 136161847f8eSopenharmony_ci COMMON_EVENT_DISCHARGING = 'usual.event.DISCHARGING', 136261847f8eSopenharmony_ci 136361847f8eSopenharmony_ci /** 136461847f8eSopenharmony_ci * Sent when start charging battery. 136561847f8eSopenharmony_ci * 136661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 136761847f8eSopenharmony_ci * @since 9 136861847f8eSopenharmony_ci */ 136961847f8eSopenharmony_ci COMMON_EVENT_CHARGING = 'usual.event.CHARGING', 137061847f8eSopenharmony_ci 137161847f8eSopenharmony_ci /** 137261847f8eSopenharmony_ci * Sent when charge type changed. 137361847f8eSopenharmony_ci * 137461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 137561847f8eSopenharmony_ci * @systemapi 137661847f8eSopenharmony_ci * @since 10 137761847f8eSopenharmony_ci */ 137861847f8eSopenharmony_ci COMMON_EVENT_CHARGE_TYPE_CHANGED = 'usual.event.CHARGE_TYPE_CHANGED', 137961847f8eSopenharmony_ci 138061847f8eSopenharmony_ci /** 138161847f8eSopenharmony_ci * Sent when device's idle mode changed 138261847f8eSopenharmony_ci * 138361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 138461847f8eSopenharmony_ci * @since 9 138561847f8eSopenharmony_ci */ 138661847f8eSopenharmony_ci COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED = 'usual.event.DEVICE_IDLE_MODE_CHANGED', 138761847f8eSopenharmony_ci 138861847f8eSopenharmony_ci /** 138961847f8eSopenharmony_ci * Sent when device's charge idle mode changed. 139061847f8eSopenharmony_ci * 139161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 139261847f8eSopenharmony_ci * @since 10 139361847f8eSopenharmony_ci */ 139461847f8eSopenharmony_ci COMMON_EVENT_CHARGE_IDLE_MODE_CHANGED = 'usual.event.CHARGE_IDLE_MODE_CHANGED', 139561847f8eSopenharmony_ci 139661847f8eSopenharmony_ci /** 139761847f8eSopenharmony_ci * Sent when the list of exempt applications in idle mode is updated. 139861847f8eSopenharmony_ci * 139961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 140061847f8eSopenharmony_ci * @systemapi 140161847f8eSopenharmony_ci * @since 10 140261847f8eSopenharmony_ci */ 140361847f8eSopenharmony_ci COMMON_EVENT_DEVICE_IDLE_EXEMPTION_LIST_UPDATED = 'usual.event.DEVICE_IDLE_EXEMPTION_LIST_UPDATED', 140461847f8eSopenharmony_ci 140561847f8eSopenharmony_ci /** 140661847f8eSopenharmony_ci * Sent when device's power save mode changed 140761847f8eSopenharmony_ci * 140861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 140961847f8eSopenharmony_ci * @since 9 141061847f8eSopenharmony_ci */ 141161847f8eSopenharmony_ci COMMON_EVENT_POWER_SAVE_MODE_CHANGED = 'usual.event.POWER_SAVE_MODE_CHANGED', 141261847f8eSopenharmony_ci 141361847f8eSopenharmony_ci /** 141461847f8eSopenharmony_ci * User added. 141561847f8eSopenharmony_ci * 141661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 141761847f8eSopenharmony_ci * This API can be called only by system applications. 141861847f8eSopenharmony_ci * @since 9 141961847f8eSopenharmony_ci */ 142061847f8eSopenharmony_ci COMMON_EVENT_USER_ADDED = 'usual.event.USER_ADDED', 142161847f8eSopenharmony_ci 142261847f8eSopenharmony_ci /** 142361847f8eSopenharmony_ci * User removed. 142461847f8eSopenharmony_ci * 142561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 142661847f8eSopenharmony_ci * This API can be called only by system applications. 142761847f8eSopenharmony_ci * @since 9 142861847f8eSopenharmony_ci */ 142961847f8eSopenharmony_ci COMMON_EVENT_USER_REMOVED = 'usual.event.USER_REMOVED', 143061847f8eSopenharmony_ci 143161847f8eSopenharmony_ci /** 143261847f8eSopenharmony_ci * Sent when ability is added. 143361847f8eSopenharmony_ci * 143461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 143561847f8eSopenharmony_ci * @since 9 143661847f8eSopenharmony_ci */ 143761847f8eSopenharmony_ci COMMON_EVENT_ABILITY_ADDED = 'common.event.ABILITY_ADDED', 143861847f8eSopenharmony_ci 143961847f8eSopenharmony_ci /** 144061847f8eSopenharmony_ci * Sent when ability is removed. 144161847f8eSopenharmony_ci * 144261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 144361847f8eSopenharmony_ci * @since 9 144461847f8eSopenharmony_ci */ 144561847f8eSopenharmony_ci COMMON_EVENT_ABILITY_REMOVED = 'common.event.ABILITY_REMOVED', 144661847f8eSopenharmony_ci 144761847f8eSopenharmony_ci /** 144861847f8eSopenharmony_ci * Sent when ability is updated. 144961847f8eSopenharmony_ci * 145061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 145161847f8eSopenharmony_ci * @since 9 145261847f8eSopenharmony_ci */ 145361847f8eSopenharmony_ci COMMON_EVENT_ABILITY_UPDATED = 'common.event.ABILITY_UPDATED', 145461847f8eSopenharmony_ci 145561847f8eSopenharmony_ci /** 145661847f8eSopenharmony_ci * Gps mode state changed. 145761847f8eSopenharmony_ci * 145861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 145961847f8eSopenharmony_ci * @since 9 146061847f8eSopenharmony_ci */ 146161847f8eSopenharmony_ci COMMON_EVENT_LOCATION_MODE_STATE_CHANGED = 'usual.event.location.MODE_STATE_CHANGED', 146261847f8eSopenharmony_ci 146361847f8eSopenharmony_ci /** 146461847f8eSopenharmony_ci * The ivi is about to go into sleep state when the ivi is turned off power. 146561847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 146661847f8eSopenharmony_ci * 146761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 146861847f8eSopenharmony_ci * @since 9 146961847f8eSopenharmony_ci */ 147061847f8eSopenharmony_ci COMMON_EVENT_IVI_SLEEP = 'common.event.IVI_SLEEP', 147161847f8eSopenharmony_ci 147261847f8eSopenharmony_ci /** 147361847f8eSopenharmony_ci * The ivi is slept and notify the app stop playing. 147461847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 147561847f8eSopenharmony_ci * 147661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 147761847f8eSopenharmony_ci * @since 9 147861847f8eSopenharmony_ci */ 147961847f8eSopenharmony_ci COMMON_EVENT_IVI_PAUSE = 'common.event.IVI_PAUSE', 148061847f8eSopenharmony_ci 148161847f8eSopenharmony_ci /** 148261847f8eSopenharmony_ci * The ivi is standby and notify the app stop playing. 148361847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 148461847f8eSopenharmony_ci * 148561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 148661847f8eSopenharmony_ci * @since 9 148761847f8eSopenharmony_ci */ 148861847f8eSopenharmony_ci COMMON_EVENT_IVI_STANDBY = 'common.event.IVI_STANDBY', 148961847f8eSopenharmony_ci 149061847f8eSopenharmony_ci /** 149161847f8eSopenharmony_ci * The app stop playing and save state. 149261847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 149361847f8eSopenharmony_ci * 149461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 149561847f8eSopenharmony_ci * @since 9 149661847f8eSopenharmony_ci */ 149761847f8eSopenharmony_ci COMMON_EVENT_IVI_LASTMODE_SAVE = 'common.event.IVI_LASTMODE_SAVE', 149861847f8eSopenharmony_ci 149961847f8eSopenharmony_ci /** 150061847f8eSopenharmony_ci * The ivi is voltage abnormal. 150161847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 150261847f8eSopenharmony_ci * 150361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 150461847f8eSopenharmony_ci * @since 9 150561847f8eSopenharmony_ci */ 150661847f8eSopenharmony_ci COMMON_EVENT_IVI_VOLTAGE_ABNORMAL = 'common.event.IVI_VOLTAGE_ABNORMAL', 150761847f8eSopenharmony_ci 150861847f8eSopenharmony_ci /** 150961847f8eSopenharmony_ci * The ivi temperature is too high. 151061847f8eSopenharmony_ci * This is a protected common event that can only be sent by system.this common event will be delete later, 151161847f8eSopenharmony_ci * please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL. 151261847f8eSopenharmony_ci * 151361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 151461847f8eSopenharmony_ci * @since 9 151561847f8eSopenharmony_ci */ 151661847f8eSopenharmony_ci COMMON_EVENT_IVI_HIGH_TEMPERATURE = 'common.event.IVI_HIGH_TEMPERATURE', 151761847f8eSopenharmony_ci 151861847f8eSopenharmony_ci /** 151961847f8eSopenharmony_ci * The ivi temperature is extreme high. 152061847f8eSopenharmony_ci * This is a protected common event that can only be sent by system.this common event will be delete later, 152161847f8eSopenharmony_ci * please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL. 152261847f8eSopenharmony_ci * 152361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 152461847f8eSopenharmony_ci * @since 9 152561847f8eSopenharmony_ci */ 152661847f8eSopenharmony_ci COMMON_EVENT_IVI_EXTREME_TEMPERATURE = 'common.event.IVI_EXTREME_TEMPERATURE', 152761847f8eSopenharmony_ci 152861847f8eSopenharmony_ci /** 152961847f8eSopenharmony_ci * The ivi temperature is abnormal. 153061847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 153161847f8eSopenharmony_ci * 153261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 153361847f8eSopenharmony_ci * @since 9 153461847f8eSopenharmony_ci */ 153561847f8eSopenharmony_ci COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL = 'common.event.IVI_TEMPERATURE_ABNORMAL', 153661847f8eSopenharmony_ci 153761847f8eSopenharmony_ci /** 153861847f8eSopenharmony_ci * The ivi voltage is recovery. 153961847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 154061847f8eSopenharmony_ci * 154161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 154261847f8eSopenharmony_ci * @since 9 154361847f8eSopenharmony_ci */ 154461847f8eSopenharmony_ci COMMON_EVENT_IVI_VOLTAGE_RECOVERY = 'common.event.IVI_VOLTAGE_RECOVERY', 154561847f8eSopenharmony_ci 154661847f8eSopenharmony_ci /** 154761847f8eSopenharmony_ci * The ivi temperature is recovery. 154861847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 154961847f8eSopenharmony_ci * 155061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 155161847f8eSopenharmony_ci * @since 9 155261847f8eSopenharmony_ci */ 155361847f8eSopenharmony_ci COMMON_EVENT_IVI_TEMPERATURE_RECOVERY = 'common.event.IVI_TEMPERATURE_RECOVERY', 155461847f8eSopenharmony_ci 155561847f8eSopenharmony_ci /** 155661847f8eSopenharmony_ci * The battery service is active. 155761847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 155861847f8eSopenharmony_ci * 155961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 156061847f8eSopenharmony_ci * @since 9 156161847f8eSopenharmony_ci */ 156261847f8eSopenharmony_ci COMMON_EVENT_IVI_ACTIVE = 'common.event.IVI_ACTIVE', 156361847f8eSopenharmony_ci 156461847f8eSopenharmony_ci /** 156561847f8eSopenharmony_ci * The usb state change events. 156661847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 156761847f8eSopenharmony_ci * 156861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 156961847f8eSopenharmony_ci * @since 9 157061847f8eSopenharmony_ci */ 157161847f8eSopenharmony_ci COMMON_EVENT_USB_STATE = 'usual.event.hardware.usb.action.USB_STATE', 157261847f8eSopenharmony_ci 157361847f8eSopenharmony_ci /** 157461847f8eSopenharmony_ci * The usb port changed. 157561847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 157661847f8eSopenharmony_ci * 157761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 157861847f8eSopenharmony_ci * @since 9 157961847f8eSopenharmony_ci */ 158061847f8eSopenharmony_ci COMMON_EVENT_USB_PORT_CHANGED = 'usual.event.hardware.usb.action.USB_PORT_CHANGED', 158161847f8eSopenharmony_ci 158261847f8eSopenharmony_ci /** 158361847f8eSopenharmony_ci * The usb device attached. 158461847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 158561847f8eSopenharmony_ci * 158661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 158761847f8eSopenharmony_ci * @since 9 158861847f8eSopenharmony_ci */ 158961847f8eSopenharmony_ci COMMON_EVENT_USB_DEVICE_ATTACHED = 'usual.event.hardware.usb.action.USB_DEVICE_ATTACHED', 159061847f8eSopenharmony_ci 159161847f8eSopenharmony_ci /** 159261847f8eSopenharmony_ci * The usb device detached. 159361847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 159461847f8eSopenharmony_ci * 159561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 159661847f8eSopenharmony_ci * @since 9 159761847f8eSopenharmony_ci */ 159861847f8eSopenharmony_ci COMMON_EVENT_USB_DEVICE_DETACHED = 'usual.event.hardware.usb.action.USB_DEVICE_DETACHED', 159961847f8eSopenharmony_ci 160061847f8eSopenharmony_ci /** 160161847f8eSopenharmony_ci * The usb accessory attached. 160261847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 160361847f8eSopenharmony_ci * 160461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 160561847f8eSopenharmony_ci * @since 9 160661847f8eSopenharmony_ci */ 160761847f8eSopenharmony_ci COMMON_EVENT_USB_ACCESSORY_ATTACHED = 'usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED', 160861847f8eSopenharmony_ci 160961847f8eSopenharmony_ci /** 161061847f8eSopenharmony_ci * The usb accessory detached. 161161847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 161261847f8eSopenharmony_ci * 161361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 161461847f8eSopenharmony_ci * @since 9 161561847f8eSopenharmony_ci */ 161661847f8eSopenharmony_ci COMMON_EVENT_USB_ACCESSORY_DETACHED = 'usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED', 161761847f8eSopenharmony_ci 161861847f8eSopenharmony_ci /** 161961847f8eSopenharmony_ci * The external storage was removed. 162061847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 162161847f8eSopenharmony_ci * 162261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 162361847f8eSopenharmony_ci * @since 9 162461847f8eSopenharmony_ci */ 162561847f8eSopenharmony_ci COMMON_EVENT_DISK_REMOVED = 'usual.event.data.DISK_REMOVED', 162661847f8eSopenharmony_ci 162761847f8eSopenharmony_ci /** 162861847f8eSopenharmony_ci * The external storage was unmounted. 162961847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 163061847f8eSopenharmony_ci * 163161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 163261847f8eSopenharmony_ci * @since 9 163361847f8eSopenharmony_ci */ 163461847f8eSopenharmony_ci COMMON_EVENT_DISK_UNMOUNTED = 'usual.event.data.DISK_UNMOUNTED', 163561847f8eSopenharmony_ci 163661847f8eSopenharmony_ci /** 163761847f8eSopenharmony_ci * The external storage was mounted. 163861847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 163961847f8eSopenharmony_ci * 164061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 164161847f8eSopenharmony_ci * @since 9 164261847f8eSopenharmony_ci */ 164361847f8eSopenharmony_ci COMMON_EVENT_DISK_MOUNTED = 'usual.event.data.DISK_MOUNTED', 164461847f8eSopenharmony_ci 164561847f8eSopenharmony_ci /** 164661847f8eSopenharmony_ci * The external storage was bad removal. 164761847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 164861847f8eSopenharmony_ci * 164961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 165061847f8eSopenharmony_ci * @since 9 165161847f8eSopenharmony_ci */ 165261847f8eSopenharmony_ci COMMON_EVENT_DISK_BAD_REMOVAL = 'usual.event.data.DISK_BAD_REMOVAL', 165361847f8eSopenharmony_ci 165461847f8eSopenharmony_ci /** 165561847f8eSopenharmony_ci * The external storage was unmountable. 165661847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 165761847f8eSopenharmony_ci * 165861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 165961847f8eSopenharmony_ci * @since 9 166061847f8eSopenharmony_ci */ 166161847f8eSopenharmony_ci COMMON_EVENT_DISK_UNMOUNTABLE = 'usual.event.data.DISK_UNMOUNTABLE', 166261847f8eSopenharmony_ci 166361847f8eSopenharmony_ci /** 166461847f8eSopenharmony_ci * The external storage was eject. 166561847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 166661847f8eSopenharmony_ci * 166761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 166861847f8eSopenharmony_ci * @since 9 166961847f8eSopenharmony_ci */ 167061847f8eSopenharmony_ci COMMON_EVENT_DISK_EJECT = 'usual.event.data.DISK_EJECT', 167161847f8eSopenharmony_ci 167261847f8eSopenharmony_ci /** 167361847f8eSopenharmony_ci * The external storage was removed. 167461847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 167561847f8eSopenharmony_ci * This API can be called only by system applications. 167661847f8eSopenharmony_ci * 167761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 167861847f8eSopenharmony_ci * @since 9 167961847f8eSopenharmony_ci */ 168061847f8eSopenharmony_ci COMMON_EVENT_VOLUME_REMOVED = 'usual.event.data.VOLUME_REMOVED', 168161847f8eSopenharmony_ci 168261847f8eSopenharmony_ci /** 168361847f8eSopenharmony_ci * The external storage was unmounted. 168461847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 168561847f8eSopenharmony_ci * This API can be called only by system applications. 168661847f8eSopenharmony_ci * 168761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 168861847f8eSopenharmony_ci * @since 9 168961847f8eSopenharmony_ci */ 169061847f8eSopenharmony_ci COMMON_EVENT_VOLUME_UNMOUNTED = 'usual.event.data.VOLUME_UNMOUNTED', 169161847f8eSopenharmony_ci 169261847f8eSopenharmony_ci /** 169361847f8eSopenharmony_ci * The external storage was mounted. 169461847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 169561847f8eSopenharmony_ci * This API can be called only by system applications. 169661847f8eSopenharmony_ci * 169761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 169861847f8eSopenharmony_ci * @since 9 169961847f8eSopenharmony_ci */ 170061847f8eSopenharmony_ci COMMON_EVENT_VOLUME_MOUNTED = 'usual.event.data.VOLUME_MOUNTED', 170161847f8eSopenharmony_ci 170261847f8eSopenharmony_ci /** 170361847f8eSopenharmony_ci * The external storage was bad removal. 170461847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 170561847f8eSopenharmony_ci * This API can be called only by system applications. 170661847f8eSopenharmony_ci * 170761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 170861847f8eSopenharmony_ci * @since 9 170961847f8eSopenharmony_ci */ 171061847f8eSopenharmony_ci COMMON_EVENT_VOLUME_BAD_REMOVAL = 'usual.event.data.VOLUME_BAD_REMOVAL', 171161847f8eSopenharmony_ci 171261847f8eSopenharmony_ci /** 171361847f8eSopenharmony_ci * The external storage was eject. 171461847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 171561847f8eSopenharmony_ci * This API can be called only by system applications. 171661847f8eSopenharmony_ci * 171761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 171861847f8eSopenharmony_ci * @since 9 171961847f8eSopenharmony_ci */ 172061847f8eSopenharmony_ci COMMON_EVENT_VOLUME_EJECT = 'usual.event.data.VOLUME_EJECT', 172161847f8eSopenharmony_ci 172261847f8eSopenharmony_ci /** 172361847f8eSopenharmony_ci * The visible of account was updated. 172461847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 172561847f8eSopenharmony_ci * 172661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 172761847f8eSopenharmony_ci * @since 9 172861847f8eSopenharmony_ci */ 172961847f8eSopenharmony_ci COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED = 'usual.event.data.VISIBLE_ACCOUNTS_UPDATED', 173061847f8eSopenharmony_ci 173161847f8eSopenharmony_ci /** 173261847f8eSopenharmony_ci * Account was deleted. 173361847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 173461847f8eSopenharmony_ci * 173561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 173661847f8eSopenharmony_ci * This API can be called only by system applications. 173761847f8eSopenharmony_ci * @since 9 173861847f8eSopenharmony_ci */ 173961847f8eSopenharmony_ci COMMON_EVENT_ACCOUNT_DELETED = 'usual.event.data.ACCOUNT_DELETED', 174061847f8eSopenharmony_ci 174161847f8eSopenharmony_ci /** 174261847f8eSopenharmony_ci * Foundation was ready. 174361847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 174461847f8eSopenharmony_ci * 174561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 174661847f8eSopenharmony_ci * @since 9 174761847f8eSopenharmony_ci */ 174861847f8eSopenharmony_ci COMMON_EVENT_FOUNDATION_READY = 'common.event.FOUNDATION_READY', 174961847f8eSopenharmony_ci 175061847f8eSopenharmony_ci /** 175161847f8eSopenharmony_ci * Indicates the common event Action indicating that the airplane mode status of the device changes. 175261847f8eSopenharmony_ci * Users can register this event to listen to the change of the airplane mode status of the device. 175361847f8eSopenharmony_ci * 175461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 175561847f8eSopenharmony_ci * @since 9 175661847f8eSopenharmony_ci */ 175761847f8eSopenharmony_ci COMMON_EVENT_AIRPLANE_MODE_CHANGED = 'usual.event.AIRPLANE_MODE', 175861847f8eSopenharmony_ci 175961847f8eSopenharmony_ci /** 176061847f8eSopenharmony_ci * sent by the window manager service when the window mode is split. 176161847f8eSopenharmony_ci * 176261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 176361847f8eSopenharmony_ci * @since 9 176461847f8eSopenharmony_ci */ 176561847f8eSopenharmony_ci /** 176661847f8eSopenharmony_ci * sent by the window manager service when the window mode is split. 176761847f8eSopenharmony_ci * 176861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 176961847f8eSopenharmony_ci * @atomicservice 177061847f8eSopenharmony_ci * @since 11 177161847f8eSopenharmony_ci */ 177261847f8eSopenharmony_ci COMMON_EVENT_SPLIT_SCREEN = 'common.event.SPLIT_SCREEN', 177361847f8eSopenharmony_ci 177461847f8eSopenharmony_ci /** 177561847f8eSopenharmony_ci * The notification slot has been updated. 177661847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 177761847f8eSopenharmony_ci * This API can be called only by system applications. 177861847f8eSopenharmony_ci * 177961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 178061847f8eSopenharmony_ci * @since 9 178161847f8eSopenharmony_ci */ 178261847f8eSopenharmony_ci COMMON_EVENT_SLOT_CHANGE = 'usual.event.SLOT_CHANGE', 178361847f8eSopenharmony_ci 178461847f8eSopenharmony_ci /** 178561847f8eSopenharmony_ci * Indicate the action of a common event that the spn display information has been updated. 178661847f8eSopenharmony_ci * This common event can be triggered only by system. 178761847f8eSopenharmony_ci * 178861847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 178961847f8eSopenharmony_ci * @since 9 179061847f8eSopenharmony_ci */ 179161847f8eSopenharmony_ci COMMON_EVENT_SPN_INFO_CHANGED = 'usual.event.SPN_INFO_CHANGED', 179261847f8eSopenharmony_ci 179361847f8eSopenharmony_ci /** 179461847f8eSopenharmony_ci * Indicate the result of quick fix apply. 179561847f8eSopenharmony_ci * This common event can be triggered only by system. 179661847f8eSopenharmony_ci * 179761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 179861847f8eSopenharmony_ci * @since 9 179961847f8eSopenharmony_ci */ 180061847f8eSopenharmony_ci COMMON_EVENT_QUICK_FIX_APPLY_RESULT = 'usual.event.QUICK_FIX_APPLY_RESULT', 180161847f8eSopenharmony_ci 180261847f8eSopenharmony_ci /** 180361847f8eSopenharmony_ci * Indicate the result of quick fix revoke. 180461847f8eSopenharmony_ci * This common event can be triggered only by system. 180561847f8eSopenharmony_ci * 180661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 180761847f8eSopenharmony_ci * @since 10 180861847f8eSopenharmony_ci */ 180961847f8eSopenharmony_ci COMMON_EVENT_QUICK_FIX_REVOKE_RESULT = 'usual.event.QUICK_FIX_REVOKE_RESULT', 181061847f8eSopenharmony_ci 181161847f8eSopenharmony_ci /** 181261847f8eSopenharmony_ci * Indicate the action of a common event that the user information has been updated. 181361847f8eSopenharmony_ci * This common event can be triggered only by system. 181461847f8eSopenharmony_ci * 181561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 181661847f8eSopenharmony_ci * @since 9 181761847f8eSopenharmony_ci */ 181861847f8eSopenharmony_ci COMMON_EVENT_USER_INFO_UPDATED = 'usual.event.USER_INFO_UPDATED', 181961847f8eSopenharmony_ci 182061847f8eSopenharmony_ci /** 182161847f8eSopenharmony_ci * Indicate http proxy has been changed. 182261847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 182361847f8eSopenharmony_ci * 182461847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 182561847f8eSopenharmony_ci * @since 10 182661847f8eSopenharmony_ci */ 182761847f8eSopenharmony_ci COMMON_EVENT_HTTP_PROXY_CHANGE = 'usual.event.HTTP_PROXY_CHANGE', 182861847f8eSopenharmony_ci 182961847f8eSopenharmony_ci /** 183061847f8eSopenharmony_ci * Indicates the action of a common event that the phone SIM card state has changed. 183161847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 183261847f8eSopenharmony_ci * 183361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 183461847f8eSopenharmony_ci * @since 10 183561847f8eSopenharmony_ci */ 183661847f8eSopenharmony_ci COMMON_EVENT_SIM_STATE_CHANGED = 'usual.event.SIM_STATE_CHANGED', 183761847f8eSopenharmony_ci 183861847f8eSopenharmony_ci /** 183961847f8eSopenharmony_ci * Indicate the action of a common event that a new sms bas been received by the device. 184061847f8eSopenharmony_ci * To subscribe to this common event, your application must have the ohos.permission.RECEIVE_SMS permission. 184161847f8eSopenharmony_ci * This common event can be triggered only by system. 184261847f8eSopenharmony_ci * 184361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 184461847f8eSopenharmony_ci * @systemapi 184561847f8eSopenharmony_ci * @since 10 184661847f8eSopenharmony_ci */ 184761847f8eSopenharmony_ci COMMON_EVENT_SMS_RECEIVE_COMPLETED = 'usual.event.SMS_RECEIVE_COMPLETED', 184861847f8eSopenharmony_ci 184961847f8eSopenharmony_ci /** 185061847f8eSopenharmony_ci * Indicate the action of a common event that a new sms emergency cell broadcast bas been received by the device. 185161847f8eSopenharmony_ci * This common event can be triggered only by system. 185261847f8eSopenharmony_ci * 185361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 185461847f8eSopenharmony_ci * @systemapi 185561847f8eSopenharmony_ci * @since 10 185661847f8eSopenharmony_ci */ 185761847f8eSopenharmony_ci COMMON_EVENT_SMS_EMERGENCY_CB_RECEIVE_COMPLETED = 'usual.event.SMS_EMERGENCY_CB_RECEIVE_COMPLETED', 185861847f8eSopenharmony_ci 185961847f8eSopenharmony_ci /** 186061847f8eSopenharmony_ci * Indicate the action of a common event that a new sms normal cell broadcast bas been received by the device. 186161847f8eSopenharmony_ci * This common event can be triggered only by system. 186261847f8eSopenharmony_ci * 186361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 186461847f8eSopenharmony_ci * @systemapi 186561847f8eSopenharmony_ci * @since 10 186661847f8eSopenharmony_ci */ 186761847f8eSopenharmony_ci COMMON_EVENT_SMS_CB_RECEIVE_COMPLETED = 'usual.event.SMS_CB_RECEIVE_COMPLETED', 186861847f8eSopenharmony_ci 186961847f8eSopenharmony_ci /** 187061847f8eSopenharmony_ci * Indicate the action of a common event that a STK command has been received by the device. 187161847f8eSopenharmony_ci * To subscribe to this protected common event, your application must have the ohos.permission.STK_MESSAGES_RECEIVED 187261847f8eSopenharmony_ci * permission. 187361847f8eSopenharmony_ci * This common event can be triggered only by system. 187461847f8eSopenharmony_ci * 187561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 187661847f8eSopenharmony_ci * @systemapi 187761847f8eSopenharmony_ci * @since 10 187861847f8eSopenharmony_ci */ 187961847f8eSopenharmony_ci COMMON_EVENT_STK_COMMAND = 'usual.event.STK_COMMAND', 188061847f8eSopenharmony_ci 188161847f8eSopenharmony_ci /** 188261847f8eSopenharmony_ci * Indicate the action of a common event that STK session end. 188361847f8eSopenharmony_ci * To subscribe to this protected common event, your application must have the ohos.permission.STK_MESSAGES_RECEIVED 188461847f8eSopenharmony_ci * permission. 188561847f8eSopenharmony_ci * This common event can be triggered only by system. 188661847f8eSopenharmony_ci * 188761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 188861847f8eSopenharmony_ci * @systemapi 188961847f8eSopenharmony_ci * @since 10 189061847f8eSopenharmony_ci */ 189161847f8eSopenharmony_ci COMMON_EVENT_STK_SESSION_END = 'usual.event.STK_SESSION_END', 189261847f8eSopenharmony_ci 189361847f8eSopenharmony_ci /** 189461847f8eSopenharmony_ci * Indicate the action of a common event that the STK phone card state has changed. 189561847f8eSopenharmony_ci * To subscribe to this protected common event, your application must have the ohos.permission.STK_MESSAGES_RECEIVED 189661847f8eSopenharmony_ci * permission. 189761847f8eSopenharmony_ci * This common event can be triggered only by system. 189861847f8eSopenharmony_ci * 189961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 190061847f8eSopenharmony_ci * @systemapi 190161847f8eSopenharmony_ci * @since 10 190261847f8eSopenharmony_ci */ 190361847f8eSopenharmony_ci COMMON_EVENT_STK_CARD_STATE_CHANGED = 'usual.event.STK_CARD_STATE_CHANGED', 190461847f8eSopenharmony_ci 190561847f8eSopenharmony_ci /** 190661847f8eSopenharmony_ci * Indicate the action of a common event that an alpha string during call control has been received by the device. 190761847f8eSopenharmony_ci * To subscribe to this protected common event, your application must have the ohos.permission.STK_MESSAGES_RECEIVED 190861847f8eSopenharmony_ci * permission. 190961847f8eSopenharmony_ci * This common event can be triggered only by system. 191061847f8eSopenharmony_ci * 191161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 191261847f8eSopenharmony_ci * @systemapi 191361847f8eSopenharmony_ci * @since 10 191461847f8eSopenharmony_ci */ 191561847f8eSopenharmony_ci COMMON_EVENT_STK_ALPHA_IDENTIFIER = 'usual.event.STK_ALPHA_IDENTIFIER', 191661847f8eSopenharmony_ci 191761847f8eSopenharmony_ci /** 191861847f8eSopenharmony_ci * Indicate the action of a common event that a new sms wappush has been received by the device. 191961847f8eSopenharmony_ci * This common event can be triggered only by system. 192061847f8eSopenharmony_ci * 192161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 192261847f8eSopenharmony_ci * @systemapi 192361847f8eSopenharmony_ci * @since 10 192461847f8eSopenharmony_ci */ 192561847f8eSopenharmony_ci COMMON_EVENT_SMS_WAPPUSH_RECEIVE_COMPLETED = 'usual.event.SMS_WAPPUSH_RECEIVE_COMPLETED', 192661847f8eSopenharmony_ci 192761847f8eSopenharmony_ci /** 192861847f8eSopenharmony_ci * Indicate the action of a common event that the operator config has been updated. 192961847f8eSopenharmony_ci * This common event can be triggered only by system. 193061847f8eSopenharmony_ci * 193161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 193261847f8eSopenharmony_ci * @systemapi 193361847f8eSopenharmony_ci * @since 10 193461847f8eSopenharmony_ci */ 193561847f8eSopenharmony_ci COMMON_EVENT_OPERATOR_CONFIG_CHANGED = 'usual.event.OPERATOR_CONFIG_CHANGED', 193661847f8eSopenharmony_ci 193761847f8eSopenharmony_ci /** 193861847f8eSopenharmony_ci * Indicates the action of a common event that the default SMS subscription has been changed. 193961847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 194061847f8eSopenharmony_ci * 194161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 194261847f8eSopenharmony_ci * @systemapi 194361847f8eSopenharmony_ci * @since 10 194461847f8eSopenharmony_ci */ 194561847f8eSopenharmony_ci COMMON_EVENT_SIM_CARD_DEFAULT_SMS_SUBSCRIPTION_CHANGED = 'usual.event.SIM.DEFAULT_SMS_SUBSCRIPTION_CHANGED', 194661847f8eSopenharmony_ci 194761847f8eSopenharmony_ci /** 194861847f8eSopenharmony_ci * Indicates the action of a common event that the default data subscription has been changed. 194961847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 195061847f8eSopenharmony_ci * 195161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 195261847f8eSopenharmony_ci * @systemapi 195361847f8eSopenharmony_ci * @since 10 195461847f8eSopenharmony_ci */ 195561847f8eSopenharmony_ci COMMON_EVENT_SIM_CARD_DEFAULT_DATA_SUBSCRIPTION_CHANGED = 'usual.event.SIM.DEFAULT_DATA_SUBSCRIPTION_CHANGED', 195661847f8eSopenharmony_ci 195761847f8eSopenharmony_ci /** 195861847f8eSopenharmony_ci * Indicates the action of a common event that the default main subscription has been changed. 195961847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 196061847f8eSopenharmony_ci * 196161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 196261847f8eSopenharmony_ci * @systemapi 196361847f8eSopenharmony_ci * @since 10 196461847f8eSopenharmony_ci */ 196561847f8eSopenharmony_ci COMMON_EVENT_SIM_CARD_DEFAULT_MAIN_SUBSCRIPTION_CHANGED = 'usual.event.SIM.DEFAULT_MAIN_SUBSCRIPTION_CHANGED', 196661847f8eSopenharmony_ci 196761847f8eSopenharmony_ci /** 196861847f8eSopenharmony_ci * Indicates the action of a common event that the status of setting primary slot has been changed. 196961847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 197061847f8eSopenharmony_ci * 197161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 197261847f8eSopenharmony_ci * @systemapi 197361847f8eSopenharmony_ci * @since 11 197461847f8eSopenharmony_ci */ 197561847f8eSopenharmony_ci COMMON_EVENT_SET_PRIMARY_SLOT_STATUS = 'usual.event.SET_PRIMARY_SLOT_STATUS', 197661847f8eSopenharmony_ci 197761847f8eSopenharmony_ci /** 197861847f8eSopenharmony_ci * Indicates the action of a common event that the roaming status of main card has been changed. 197961847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 198061847f8eSopenharmony_ci * 198161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 198261847f8eSopenharmony_ci * @systemapi 198361847f8eSopenharmony_ci * @since 11 198461847f8eSopenharmony_ci */ 198561847f8eSopenharmony_ci COMMON_EVENT_PRIMARY_SLOT_ROAMING = 'usual.event.PRIMARY_SLOT_ROAMING', 198661847f8eSopenharmony_ci 198761847f8eSopenharmony_ci /** 198861847f8eSopenharmony_ci * Indicates the action of a common event that the default voice subscription has been changed. 198961847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 199061847f8eSopenharmony_ci * 199161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 199261847f8eSopenharmony_ci * @systemapi 199361847f8eSopenharmony_ci * @since 10 199461847f8eSopenharmony_ci */ 199561847f8eSopenharmony_ci COMMON_EVENT_SIM_CARD_DEFAULT_VOICE_SUBSCRIPTION_CHANGED = 'usual.event.SIM.DEFAULT_VOICE_SUBSCRIPTION_CHANGED', 199661847f8eSopenharmony_ci 199761847f8eSopenharmony_ci /** 199861847f8eSopenharmony_ci * Indicates the action of a common event that the call state has been changed. 199961847f8eSopenharmony_ci * To subscribe to this protected common event, your application must have the ohos.permission.GET_TELEPHONY_STATE 200061847f8eSopenharmony_ci * permission. 200161847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 200261847f8eSopenharmony_ci * 200361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 200461847f8eSopenharmony_ci * @since 10 200561847f8eSopenharmony_ci */ 200661847f8eSopenharmony_ci COMMON_EVENT_CALL_STATE_CHANGED = 'usual.event.CALL_STATE_CHANGED', 200761847f8eSopenharmony_ci 200861847f8eSopenharmony_ci /** 200961847f8eSopenharmony_ci * Indicates the action of a common event that the cellular data state has been changed. 201061847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 201161847f8eSopenharmony_ci * 201261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 201361847f8eSopenharmony_ci * @systemapi 201461847f8eSopenharmony_ci * @since 10 201561847f8eSopenharmony_ci */ 201661847f8eSopenharmony_ci COMMON_EVENT_CELLULAR_DATA_STATE_CHANGED = 'usual.event.CELLULAR_DATA_STATE_CHANGED', 201761847f8eSopenharmony_ci 201861847f8eSopenharmony_ci /** 201961847f8eSopenharmony_ci * Indicates the action of a common event that the network state has been changed. 202061847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 202161847f8eSopenharmony_ci * 202261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 202361847f8eSopenharmony_ci * @since 10 202461847f8eSopenharmony_ci */ 202561847f8eSopenharmony_ci COMMON_EVENT_NETWORK_STATE_CHANGED = 'usual.event.NETWORK_STATE_CHANGED', 202661847f8eSopenharmony_ci 202761847f8eSopenharmony_ci /** 202861847f8eSopenharmony_ci * Indicates the action of a common event that the signal info has been changed. 202961847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 203061847f8eSopenharmony_ci * 203161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 203261847f8eSopenharmony_ci * @since 10 203361847f8eSopenharmony_ci */ 203461847f8eSopenharmony_ci COMMON_EVENT_SIGNAL_INFO_CHANGED = 'usual.event.SIGNAL_INFO_CHANGED', 203561847f8eSopenharmony_ci 203661847f8eSopenharmony_ci /** 203761847f8eSopenharmony_ci * Indicates the action of a common event that the incoming call has been missed. 203861847f8eSopenharmony_ci * To subscribe to this protected common event, your application must have the ohos.permission.GET_TELEPHONY_STATE 203961847f8eSopenharmony_ci * permission. 204061847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 204161847f8eSopenharmony_ci * 204261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 204361847f8eSopenharmony_ci * @systemapi 204461847f8eSopenharmony_ci * @since 10 204561847f8eSopenharmony_ci */ 204661847f8eSopenharmony_ci COMMON_EVENT_INCOMING_CALL_MISSED = 'usual.event.INCOMING_CALL_MISSED', 204761847f8eSopenharmony_ci 204861847f8eSopenharmony_ci /** 204961847f8eSopenharmony_ci * Indicates the action of a common event that radio state change. 205061847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 205161847f8eSopenharmony_ci * 205261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 205361847f8eSopenharmony_ci * @systemapi 205461847f8eSopenharmony_ci * @since 10 205561847f8eSopenharmony_ci */ 205661847f8eSopenharmony_ci COMMON_EVENT_RADIO_STATE_CHANGE = 'usual.event.RADIO_STATE_CHANGE', 205761847f8eSopenharmony_ci 205861847f8eSopenharmony_ci /** 205961847f8eSopenharmony_ci * Indicate the action of a common event that domain account status has been changed. 206061847f8eSopenharmony_ci * To subscribe to this protected common event, your application must have the ohos.permission.GET_LOCAL_ACCOUNTS 206161847f8eSopenharmony_ci * 206261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 206361847f8eSopenharmony_ci * @systemapi 206461847f8eSopenharmony_ci * @since 10 206561847f8eSopenharmony_ci */ 206661847f8eSopenharmony_ci COMMON_EVENT_DOMAIN_ACCOUNT_STATUS_CHANGED = 'usual.event.DOMAIN_ACCOUNT_STATUS_CHANGED', 206761847f8eSopenharmony_ci 206861847f8eSopenharmony_ci /** 206961847f8eSopenharmony_ci * This commonEvent means when the screen is unlocked. 207061847f8eSopenharmony_ci * 207161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 207261847f8eSopenharmony_ci * @since 10 207361847f8eSopenharmony_ci */ 207461847f8eSopenharmony_ci /** 207561847f8eSopenharmony_ci * This commonEvent means when the screen is unlocked. 207661847f8eSopenharmony_ci * 207761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 207861847f8eSopenharmony_ci * @atomicservice 207961847f8eSopenharmony_ci * @since 11 208061847f8eSopenharmony_ci */ 208161847f8eSopenharmony_ci COMMON_EVENT_SCREEN_UNLOCKED = 'usual.event.SCREEN_UNLOCKED', 208261847f8eSopenharmony_ci 208361847f8eSopenharmony_ci /** 208461847f8eSopenharmony_ci * This commonEvent means when the screen is locked. 208561847f8eSopenharmony_ci * 208661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 208761847f8eSopenharmony_ci * @since 10 208861847f8eSopenharmony_ci */ 208961847f8eSopenharmony_ci /** 209061847f8eSopenharmony_ci * This commonEvent means when the screen is locked. 209161847f8eSopenharmony_ci * 209261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 209361847f8eSopenharmony_ci * @atomicservice 209461847f8eSopenharmony_ci * @since 11 209561847f8eSopenharmony_ci */ 209661847f8eSopenharmony_ci COMMON_EVENT_SCREEN_LOCKED = 'usual.event.SCREEN_LOCKED', 209761847f8eSopenharmony_ci 209861847f8eSopenharmony_ci /** 209961847f8eSopenharmony_ci * Indicates the action of a common event that the network connectivity changed. 210061847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 210161847f8eSopenharmony_ci * 210261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 210361847f8eSopenharmony_ci * @since 10 210461847f8eSopenharmony_ci */ 210561847f8eSopenharmony_ci /** 210661847f8eSopenharmony_ci * Indicates the action of a common event that the network connectivity changed. 210761847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 210861847f8eSopenharmony_ci * 210961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 211061847f8eSopenharmony_ci * @atomicservice 211161847f8eSopenharmony_ci * @since 11 211261847f8eSopenharmony_ci */ 211361847f8eSopenharmony_ci COMMON_EVENT_CONNECTIVITY_CHANGE = 'usual.event.CONNECTIVITY_CHANGE', 211461847f8eSopenharmony_ci 211561847f8eSopenharmony_ci /** 211661847f8eSopenharmony_ci * Indicates the action of a common event that special number has been entered by dialer 211761847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 211861847f8eSopenharmony_ci * 211961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 212061847f8eSopenharmony_ci * @systemapi 212161847f8eSopenharmony_ci * @since 10 212261847f8eSopenharmony_ci */ 212361847f8eSopenharmony_ci COMMON_EVENT_SPECIAL_CODE = 'common.event.SPECIAL_CODE', 212461847f8eSopenharmony_ci 212561847f8eSopenharmony_ci /** 212661847f8eSopenharmony_ci * Indicates the action of a common event that audio quality change. 212761847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 212861847f8eSopenharmony_ci * 212961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 213061847f8eSopenharmony_ci * @systemapi 213161847f8eSopenharmony_ci * @since 10 213261847f8eSopenharmony_ci */ 213361847f8eSopenharmony_ci COMMON_EVENT_AUDIO_QUALITY_CHANGE = 'usual.event.AUDIO_QUALITY_CHANGE', 213461847f8eSopenharmony_ci 213561847f8eSopenharmony_ci /** 213661847f8eSopenharmony_ci * Indicates that the privacy status is changed. 213761847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 213861847f8eSopenharmony_ci * 213961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 214061847f8eSopenharmony_ci * @systemapi 214161847f8eSopenharmony_ci * @since 11 214261847f8eSopenharmony_ci */ 214361847f8eSopenharmony_ci COMMON_EVENT_PRIVACY_STATE_CHANGED = 'usual.event.PRIVACY_STATE_CHANGED', 214461847f8eSopenharmony_ci 214561847f8eSopenharmony_ci /** 214661847f8eSopenharmony_ci * This commonEvent means when a new application package start to install on the device. 214761847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 214861847f8eSopenharmony_ci * 214961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 215061847f8eSopenharmony_ci * @systemapi 215161847f8eSopenharmony_ci * @since 12 215261847f8eSopenharmony_ci */ 215361847f8eSopenharmony_ci COMMON_EVENT_PACKAGE_INSTALLATION_STARTED = 'usual.event.PACKAGE_INSTALLATION_STARTED', 215461847f8eSopenharmony_ci 215561847f8eSopenharmony_ci /** 215661847f8eSopenharmony_ci * This common event means an application package enables or disables a dynamic icon. 215761847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 215861847f8eSopenharmony_ci * 215961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 216061847f8eSopenharmony_ci * @systemapi 216161847f8eSopenharmony_ci * @since 12 216261847f8eSopenharmony_ci */ 216361847f8eSopenharmony_ci COMMON_EVENT_DYNAMIC_ICON_CHANGED = 'usual.event.DYNAMIC_ICON_CHANGED', 216461847f8eSopenharmony_ci 216561847f8eSopenharmony_ci /** 216661847f8eSopenharmony_ci * This common event means that minors mode is enabled. 216761847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 216861847f8eSopenharmony_ci * 216961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 217061847f8eSopenharmony_ci * @atomicservice 217161847f8eSopenharmony_ci * @since 12 217261847f8eSopenharmony_ci */ 217361847f8eSopenharmony_ci COMMON_EVENT_MINORSMODE_ON = 'usual.event.MINORSMODE_ON', 217461847f8eSopenharmony_ci 217561847f8eSopenharmony_ci /** 217661847f8eSopenharmony_ci * This common event means that minors mode is disabled. 217761847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 217861847f8eSopenharmony_ci * 217961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 218061847f8eSopenharmony_ci * @atomicservice 218161847f8eSopenharmony_ci * @since 12 218261847f8eSopenharmony_ci */ 218361847f8eSopenharmony_ci COMMON_EVENT_MINORSMODE_OFF = 'usual.event.MINORSMODE_OFF', 218461847f8eSopenharmony_ci 218561847f8eSopenharmony_ci /** 218661847f8eSopenharmony_ci * Indicates the action of a common event that the bundle resources have been changed. 218761847f8eSopenharmony_ci * To subscribe to this common event, your application must have the ohos.permission.GET_BUNDLE_RESOURCES 218861847f8eSopenharmony_ci * permission. 218961847f8eSopenharmony_ci * This is a protected common event, which can be sent only by the system. 219061847f8eSopenharmony_ci * 219161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 219261847f8eSopenharmony_ci * @systemapi 219361847f8eSopenharmony_ci * @since 12 219461847f8eSopenharmony_ci */ 219561847f8eSopenharmony_ci COMMON_EVENT_BUNDLE_RESOURCES_CHANGED = "usual.event.BUNDLE_RESOURCES_CHANGED", 219661847f8eSopenharmony_ci 219761847f8eSopenharmony_ci /** 219861847f8eSopenharmony_ci * This common event means that datashare is ready. 219961847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 220061847f8eSopenharmony_ci * 220161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 220261847f8eSopenharmony_ci * @atomicservice 220361847f8eSopenharmony_ci * @since 12 220461847f8eSopenharmony_ci */ 220561847f8eSopenharmony_ci COMMON_EVENT_DATA_SHARE_READY = 'usual.event.DATA_SHARE_READY', 220661847f8eSopenharmony_ci 220761847f8eSopenharmony_ci /** 220861847f8eSopenharmony_ci * This common event means that vpn connection status has been changed. 220961847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 221061847f8eSopenharmony_ci * 221161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 221261847f8eSopenharmony_ci * @systemapi 221361847f8eSopenharmony_ci * @since 12 221461847f8eSopenharmony_ci */ 221561847f8eSopenharmony_ci COMMON_EVENT_VPN_CONNECTION_STATUS_CHANGED = 'usual.event.VPN_CONNECTION_STATUS_CHANGED', 221661847f8eSopenharmony_ci 221761847f8eSopenharmony_ci /** 221861847f8eSopenharmony_ci * Indicates that an application begins to restored. 221961847f8eSopenharmony_ci * To subscribe to this common event, your application must have the ohos.permission.START_RESTORE_NOTIFICATION 222061847f8eSopenharmony_ci * permission. 222161847f8eSopenharmony_ci * This is a protected common event that can only be sent by system. 222261847f8eSopenharmony_ci * 222361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 222461847f8eSopenharmony_ci * @systemapi 222561847f8eSopenharmony_ci * @since 13 222661847f8eSopenharmony_ci */ 222761847f8eSopenharmony_ci COMMON_EVENT_RESTORE_START = "usual.event.RESTORE_START", 222861847f8eSopenharmony_ci } 222961847f8eSopenharmony_ci 223061847f8eSopenharmony_ci /** 223161847f8eSopenharmony_ci * Describes the data of the common event 223261847f8eSopenharmony_ci * 223361847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 223461847f8eSopenharmony_ci * @since 10 223561847f8eSopenharmony_ci */ 223661847f8eSopenharmony_ci /** 223761847f8eSopenharmony_ci * Describes the data of the common event 223861847f8eSopenharmony_ci * 223961847f8eSopenharmony_ci * @typedef { _CommonEventData } CommonEventData 224061847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 224161847f8eSopenharmony_ci * @atomicservice 224261847f8eSopenharmony_ci * @since 11 224361847f8eSopenharmony_ci */ 224461847f8eSopenharmony_ci export type CommonEventData = _CommonEventData; 224561847f8eSopenharmony_ci 224661847f8eSopenharmony_ci /** 224761847f8eSopenharmony_ci * Describes the subscriber of common event 224861847f8eSopenharmony_ci * 224961847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 225061847f8eSopenharmony_ci * @since 10 225161847f8eSopenharmony_ci */ 225261847f8eSopenharmony_ci /** 225361847f8eSopenharmony_ci * Describes the subscriber of common event 225461847f8eSopenharmony_ci * 225561847f8eSopenharmony_ci * @typedef { _CommonEventSubscriber } CommonEventSubscriber 225661847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 225761847f8eSopenharmony_ci * @atomicservice 225861847f8eSopenharmony_ci * @since 11 225961847f8eSopenharmony_ci */ 226061847f8eSopenharmony_ci export type CommonEventSubscriber = _CommonEventSubscriber; 226161847f8eSopenharmony_ci 226261847f8eSopenharmony_ci /** 226361847f8eSopenharmony_ci * Describes the information of the subscriber 226461847f8eSopenharmony_ci * 226561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 226661847f8eSopenharmony_ci * @since 10 226761847f8eSopenharmony_ci */ 226861847f8eSopenharmony_ci /** 226961847f8eSopenharmony_ci * Describes the information of the subscriber 227061847f8eSopenharmony_ci * 227161847f8eSopenharmony_ci * @typedef { _CommonEventSubscribeInfo } CommonEventSubscribeInfo 227261847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 227361847f8eSopenharmony_ci * @atomicservice 227461847f8eSopenharmony_ci * @since 11 227561847f8eSopenharmony_ci */ 227661847f8eSopenharmony_ci export type CommonEventSubscribeInfo = _CommonEventSubscribeInfo; 227761847f8eSopenharmony_ci 227861847f8eSopenharmony_ci /** 227961847f8eSopenharmony_ci * Describes the information of the subscriber 228061847f8eSopenharmony_ci * 228161847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 228261847f8eSopenharmony_ci * @since 10 228361847f8eSopenharmony_ci */ 228461847f8eSopenharmony_ci /** 228561847f8eSopenharmony_ci * Describes the information of the subscriber 228661847f8eSopenharmony_ci * 228761847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 228861847f8eSopenharmony_ci * @atomicservice 228961847f8eSopenharmony_ci * @since 11 229061847f8eSopenharmony_ci */ 229161847f8eSopenharmony_ci /** 229261847f8eSopenharmony_ci * Describes the information of the subscriber 229361847f8eSopenharmony_ci * 229461847f8eSopenharmony_ci * @typedef { _CommonEventPublishData } CommonEventPublishData 229561847f8eSopenharmony_ci * @syscap SystemCapability.Notification.CommonEvent 229661847f8eSopenharmony_ci * @crossplatform 229761847f8eSopenharmony_ci * @atomicservice 229861847f8eSopenharmony_ci * @since 12 229961847f8eSopenharmony_ci */ 230061847f8eSopenharmony_ci export type CommonEventPublishData = _CommonEventPublishData; 230161847f8eSopenharmony_ci} 230261847f8eSopenharmony_ci 230361847f8eSopenharmony_ciexport default commonEventManager; 2304