1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16sequenceable OHOS.Notification.Notification; 17sequenceable OHOS.Notification.NotificationSortingMap; 18sequenceable OHOS.Notification.NotificationDoNotDisturbDate; 19sequenceable OHOS.Notification.EnabledNotificationCallbackData; 20sequenceable OHOS.Notification.BadgeNumberCallbackData; 21sequenceable OHOS.Notification.NotificationOperationInfo; 22interface OHOS.Notification.IAnsSubscriber { 23 [oneway] void OnConnected(); 24 25 [oneway] void OnDisconnected(); 26 27 [oneway] void OnConsumed([in] sptr<Notification> notification, [in] sptr<NotificationSortingMap> notificationMap); 28 [oneway] void OnConsumed([in] sptr<Notification> notification); 29 30 [ipcincapacity 520, oneway] void OnConsumedWithMaxCapacity([in] sptr<Notification> notification, [in] sptr<NotificationSortingMap> notificationMap); 31 [ipcincapacity 520, oneway] void OnConsumedWithMaxCapacity([in] sptr<Notification> notification); 32 33 [ipcincapacity 520, oneway] void OnConsumedList([in] sptr<Notification>[] notifications, [in] sptr<NotificationSortingMap> notificationMap); 34 [ipcincapacity 520, oneway] void OnConsumedList([in] sptr<Notification>[] notifications); 35 36 [oneway] void OnCanceled([in] sptr<Notification> notification, [in] sptr<NotificationSortingMap> notificationMap, [in] int deleteReason); 37 [oneway] void OnCanceled([in] sptr<Notification> notification, [in] int deleteReason); 38 39 [ipcincapacity 520, oneway] void OnCanceledWithMaxCapacity([in] sptr<Notification> notification, [in] sptr<NotificationSortingMap> notificationMap, [in] int deleteReason); 40 [ipcincapacity 520, oneway] void OnCanceledWithMaxCapacity([in] sptr<Notification> notification, [in] int deleteReason); 41 42 [ipcincapacity 520, oneway] void OnCanceledList([in] sptr<Notification>[] notifications, [in] sptr<NotificationSortingMap> notificationMap, [in] int deleteReason); 43 [ipcincapacity 520, oneway] void OnCanceledList([in] sptr<Notification>[] notifications, [in] int deleteReason); 44 45 [oneway] void OnUpdated([in] sptr<NotificationSortingMap> notificationMap); 46 [oneway] void OnDoNotDisturbDateChange([in] sptr<NotificationDoNotDisturbDate> date); 47 [oneway] void OnEnabledNotificationChanged([in] sptr<EnabledNotificationCallbackData> callbackData); 48 [oneway] void OnBadgeChanged([in] sptr<BadgeNumberCallbackData> badgeData); 49 [oneway] void OnBadgeEnabledChanged([in] sptr<EnabledNotificationCallbackData> callbackData); 50 [oneway] void OnApplicationInfoNeedChanged([in] String bundleName); 51 int OnOperationResponse([in] sptr<NotificationOperationInfo> operationInfo); 52} 53