IRemoteBroker@Deprecated public interface IAdvancedNotificationManager extends IRemoteBroker
SystemCapability.Notification#ANSasObject@Deprecated static final int ANS_ABORT_ALL
cancelAllNotifications(java.lang.String,int) method requested by the client.@Deprecated static final int ANS_ABORT_ONE
cancelNotification(java.lang.String,java.lang.String) method requested by the client.@Deprecated static final int ANS_ADD_SLOTS
addNotificationSlots(java.lang.String,java.util.List) method requested by the client.@Deprecated static final int ANS_CAN_PUBLISH_NOTIFICATION_AS_BUNDLE
canPublishNotificationAsBundle(java.lang.String,java.lang.String) method requested by the client.@Deprecated static final int ANS_CREATE_SLOT
addNotificationSlot(java.lang.String,ohos.event.notification.NotificationSlot) method requested by the client.@Deprecated static final int ANS_CREATE_SLOTGROUP
addNotificationSlotGroup(java.lang.String,ohos.event.notification.NotificationSlotGroup) method requested by the client.@Deprecated static final int ANS_CREATE_SLOTGROUPS
addNotificationSlotGroups(java.lang.String,java.util.List) method
requested by the client.@Deprecated static final int ANS_DELETE_SLOT
removeNotificationSlot(java.lang.String,java.lang.String) method requested by the client.@Deprecated static final int ANS_DELETE_SLOTGROUP
NotificationHelper#removeNotificationSlotGroup(String) method requested by the client.@Deprecated static final int ANS_GET_ACTIVE_NOTIFICATION
getActiveNotifications(java.lang.String) method requested by the client.@Deprecated static final int ANS_GET_ACTIVE_NOTIFICATION_NUM
getActiveNotificationNums(java.lang.String) method requested by the client.@Deprecated static final int ANS_GET_NOTIFICATION_AGENT
getNotificationAgent(java.lang.String) method requested by the client.@Deprecated static final int ANS_GET_SLOT
getNotificationSlot(java.lang.String,java.lang.String) method requested by the client.@Deprecated static final int ANS_GET_SLOTGROUP
getNotificationSlotGroup(java.lang.String,java.lang.String) method requested by the client.@Deprecated static final int ANS_GET_SLOTGROUPS
getNotificationSlotGroups(java.lang.String) method requested by the client.@Deprecated static final int ANS_GET_SLOTS
getNotificationSlots(java.lang.String) method requested by the client.@Deprecated static final int ANS_GET_SORTING
getCurrentAppSorting(java.lang.String) method requested
by the client.@Deprecated static final int ANS_INQUIRY_BUNDLE_IMPORTANCE
getBundleImportance(java.lang.String) method requested by the client.@Deprecated static final int ANS_INQUIRY_IS_SUSPENDED
areNotificationsSuspended(java.lang.String) method requested by the client.@Deprecated static final int ANS_NOTIFICATIONS_ALLOWED
isAllowedNotify() method requested by the client.@Deprecated static final int ANS_NOTIFICATION_POLICY_ACCESS_PERMISSION
hasNotificationPolicyAccessPermission(java.lang.String) method requested by the client.@Deprecated static final int ANS_PUBLISH_NOTIFICATION_AS_BUNDLE
publishNotificationAsBundle(java.lang.String,java.lang.String,ohos.event.notification.NotificationRequest)
method requested by the client.@Deprecated static final int ANS_SCHEDULE_NOTIFICATION
scheduleNotification(java.lang.String,java.lang.String,ohos.event.notification.NotificationRequest) method
requested by the client.@Deprecated static final int ANS_SET_NOTIFICATION_AGENT
setNotificationAgent(java.lang.String,java.lang.String) method requested by the client.@Deprecated static final int ANS_SET_NOTIFICATION_BADGE_NUM1
setNotificationBadgeNum(java.lang.String,int) method requested by the client.@Deprecated static final int ANS_SET_NOTIFICATION_BADGE_NUM2
setNotificationBadgeNum(java.lang.String) method requested by the client.@Deprecated static final String DESCRIPTOR
@Deprecated void scheduleNotification(String label, String hashCode, NotificationRequest request) throws RemoteException
label - Indicates the label of the NotificationRequest object to be published. may be null.hashCode - Indicates the hash code of the NotificationRequest object to be published.request - Indicates the NotificationRequest object to be published.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void cancelAllNotifications(String bundleName, int userId) throws RemoteException
bundleName - Indicates the application name.userId - Indicates the user ID.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void cancelNotification(String label, String hashCode) throws RemoteException
label - Indicates the label of the NotificationRequest object to cancel.hashCode - Indicates the hash code of the NotificationRequest object to cancel.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void addNotificationSlot(String bundle, NotificationSlot slot) throws RemoteException
NotificationSlot object.
A NotificationSlot instance cannot be used directly after being initialized. Instead,
you have to call this method to create a notification slot and bind the slot ID to
a NotificationRequest object so that the notification published can have all the characteristics set
in the NotificationSlot.
After a notification slot is created by using this method, only the name and description of the notification slot can be changed. Changes to the other attributes, such as the vibration status and notification tone, will no longer take effect.
bundle - Indicates the application name.slot - Indicates the NotificationSlot object to create.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void removeNotificationSlot(String bundle, String slotId) throws RemoteException
bundle - Indicates the application name.slotId - Indicates the ID of the notification slot that has been created
using addNotificationSlot(java.lang.String,ohos.event.notification.NotificationSlot).RemoteException - Throws this exception if an IPC exception occurs.@Deprecated NotificationSlot getNotificationSlot(String bundle, String slotId) throws RemoteException
bundle - Indicates the application name.slotId - Indicates the ID of the notification slot that has been created
using addNotificationSlot(java.lang.String,ohos.event.notification.NotificationSlot).NotificationSlot.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated Set<NotificationRequest> getActiveNotifications(String bundle) throws RemoteException
bundle - Indicates the application name.NotificationRequest objects of the specified application.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated int getActiveNotificationNums(String bundle) throws RemoteException
bundle - Indicates the application name.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void setNotificationBadgeNum(String bundle, int num) throws RemoteException
bundle - Indicates the application name.num - Indicates the number to display.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void setNotificationBadgeNum(String bundle) throws RemoteException
bundle - Indicates the application name.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated NotificationSortingMap getCurrentAppSorting(String bundle) throws RemoteException
bundle - Indicates the application name.NotificationSortingMap object for the current application.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void addNotificationSlotGroup(String bundle, NotificationSlotGroup slotGroup) throws RemoteException
NotificationSlotGroup object.bundle - Indicates the application name.slotGroup - Indicates the NotificationSlotGroup object to create.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void addNotificationSlotGroups(String bundle, List<NotificationSlotGroup> slotGroups) throws RemoteException
NotificationSlotGroup objects.bundle - Indicates the application name.slotGroups - Indicates multiple NotificationSlotGroup objects to create.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated NotificationSlotGroup getNotificationSlotGroup(String bundle, String slotGroupId) throws RemoteException
bundle - Indicates the application name.slotGroupId - Indicates the ID of the notification slot group that has been created
using addNotificationSlotGroup(java.lang.String,ohos.event.notification.NotificationSlotGroup).NotificationSlotGroup.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated boolean hasNotificationPolicyAccessPermission(String bundle) throws RemoteException
bundle - Indicates the application name.true if this application has the permission; returns false otherwise.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void addNotificationSlots(String bundle, List<NotificationSlot> slots) throws RemoteException
bundle - Indicates the application name.slots - Indicates the notification slots to create.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated List<NotificationSlot> getNotificationSlots(String bundle) throws RemoteException
bundle - Indicates the application name.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void publishNotificationAsBundle(String bundle, String representativeBundle, NotificationRequest request) throws RemoteException
bundle - Indicates the application name.representativeBundle - Indicates the name of the application bundle that allows your application
to publish notifications for it by calling setNotificationAgent(java.lang.String,java.lang.String).request - Indicates the NotificationRequest object to be published.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void setNotificationAgent(String bundle, String agent) throws RemoteException
bundle - Indicates the application name.agent - Indicates the name of the application bundle that can publish notifications for your application.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated String getNotificationAgent(String bundle) throws RemoteException
bundle - Indicates the application name.null otherwise.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated boolean canPublishNotificationAsBundle(String bundle, String representativeBundle) throws RemoteException
publishNotificationAsBundle(java.lang.String,java.lang.String,ohos.event.notification.NotificationRequest) in the name of another application
indicated by the given representativeBundle.bundle - Indicates the application name.representativeBundle - Indicates the name of application bundle your application is representing.true if your application can publish notifications for
the given representativeBundle; returns false otherwise.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated List<NotificationSlotGroup> getNotificationSlotGroups(String bundle) throws RemoteException
bundle - Indicates the application name.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated boolean isAllowedNotify() throws RemoteException
true if this application has the permission; returns false otherwise.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated boolean areNotificationsSuspended(String bundle) throws RemoteException
bundle - Indicates the application name.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated int getBundleImportance(String bundle) throws RemoteException
bundle - Indicates the application name.RemoteException - Throws this exception if an IPC exception occurs.