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 16interface OHOS.Notification.IAnsDialogCallback; 17interface OHOS.Notification.IAnsSubscriberLocalLiveView; 18interface OHOS.Notification.IAnsSubscriber; 19interface OHOS.Notification.IAnsOperationCallback; 20 21sequenceable OHOS.Notification.NotificationBundleOption; 22sequenceable OHOS.Notification.NotificationDisable; 23sequenceable OHOS.Notification.NotificationDoNotDisturbDate; 24sequenceable OHOS.Notification.NotificationDoNotDisturbProfile; 25sequenceable OHOS.Notification.NotificationRequest; 26sequenceable OHOS.Notification.NotificationSlot; 27sequenceable OHOS.Notification.NotificationSubscribeInfo; 28sequenceable OHOS.Notification.NotificationOperationInfo; 29sequenceable OHOS.Notification.Notification; 30sequenceable OHOS.Notification.NotificationButtonOption; 31sequenceable OHOS.Notification.NotificationCheckRequest; 32sequenceable OHOS.IRemoteObject; 33 34interface OHOS.Notification.IAnsDistributedManager { 35 void IsDistributedEnabled([out] boolean enabled); 36 37 void SetDistributedEnabledBySlot( 38 [in] int slotTypeInt, [in] String deviceType, [in] boolean enabled); 39 40 void IsDistributedEnabledBySlot( 41 [in] int slotTypeInt, [in] String deviceType, [out] boolean enabled); 42 43 void EnableDistributed([in] boolean enabled); 44 45 void EnableDistributedByBundle([in] sptr<NotificationBundleOption> bundleOption, [in] boolean enabled); 46 47 void EnableDistributedSelf([in] boolean enabled); 48 49 void IsDistributedEnableByBundle([in] sptr<NotificationBundleOption> bundleOption, [out] boolean enabled); 50 51 void GetDeviceRemindType([out] int remindTypeInt); 52 53 void GetAllDistribuedEnabledBundles([in] String deviceType, [out] NotificationBundleOption[] bundleOption); 54 55 void SetDistributedEnabledByBundle( 56 [in] sptr<NotificationBundleOption> bundleOption, [in] String deviceType, [in] boolean enabled); 57 58 void SetDistributedEnabled([in] String deviceType, [in] boolean enabled); 59 60 void IsDistributedEnabled([in] String deviceType, [out] boolean enabled); 61 62 void GetDistributedAbility([out] int abilityId); 63 64 void GetDistributedAuthStatus([in] String deviceType, [in] String deviceId, [in] int userId, [out] boolean isAuth); 65 66 void SetDistributedAuthStatus([in] String deviceType, [in] String deviceId, [in] int userId, [in] boolean isAuth); 67 68 void IsSmartReminderEnabled([in] String deviceType, [out] boolean enabled); 69 70 void SetSmartReminderEnabled([in] String deviceType, [in] boolean enabled); 71 72 void IsDistributedEnabledByBundle([in] sptr<NotificationBundleOption> bundleOption, [in] String deviceType, [out] boolean enabled); 73 74 void SetTargetDeviceStatus([in] String deviceType, [in] unsigned int status, [in] String deviceId); 75 76 void SetTargetDeviceStatus([in] String deviceType, [in] unsigned int status, [in] unsigned int controlFlag, [in] String deviceId, [in] int userId); 77 78 void GetTargetDeviceStatus([in] String deviceType, [out] int status); 79 80 void DistributeOperation([in] null_sptr<NotificationOperationInfo> operationInfo, [in] IAnsOperationCallback operationCallback); 81 82 void ReplyDistributeOperation([in] String hashCode, [in] int resultCode); 83 84 void SetTargetDeviceBundleList([in] String deviceType, [in] String deviceId, [in] int operatorType, [in] String[] bundleList); 85 86 void SetTargetDeviceSwitch([in] String deviceType, [in] String deviceId, [in] boolean notificaitonEnable, [in] boolean liveViewEnable); 87} 88