IRemoteBroker@Deprecated public interface INotificationSubscriber extends IRemoteBroker
SystemCapability.Notification#ANS| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static String |
DESCRIPTOR |
已过时。
|
static int |
NOTIFICATION_CONNECTED |
已过时。
|
static int |
NOTIFICATION_DISCONNECT |
已过时。
|
static int |
NOTIFICATION_DISTURB_MODE_CHANGE |
已过时。
|
static int |
NOTIFICATION_POSTED |
已过时。
|
static int |
NOTIFICATION_REMOVED |
已过时。
|
static int |
NOTIFICATION_UPDATE |
已过时。
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onDisturbModeChange(int disturbMode) |
已过时。
|
void |
onNotificationPosted(NotificationRequest info) |
已过时。
|
void |
onNotificationPosted(NotificationRequest info,
NotificationSortingMap sortingMap) |
已过时。
|
void |
onNotificationRankingUpdate(NotificationSortingMap sortingMap) |
已过时。
|
void |
onNotificationRemoved(NotificationRequest info) |
已过时。
|
void |
onNotificationRemoved(NotificationRequest info,
NotificationSortingMap sortingMap,
int deleteReason) |
已过时。
|
void |
onSubscribeConnected() |
已过时。
|
void |
onSubscribeDisConnected() |
已过时。
|
asObject@Deprecated static final String DESCRIPTOR
@Deprecated static final int NOTIFICATION_CONNECTED
onSubscribeConnected() method.@Deprecated static final int NOTIFICATION_DISCONNECT
onSubscribeDisConnected() method.@Deprecated static final int NOTIFICATION_DISTURB_MODE_CHANGE
onDisturbModeChange(int) method.@Deprecated static final int NOTIFICATION_POSTED
onNotificationPosted(ohos.event.notification.NotificationRequest) method.@Deprecated static final int NOTIFICATION_REMOVED
onNotificationRemoved(ohos.event.notification.NotificationRequest) method.@Deprecated static final int NOTIFICATION_UPDATE
onNotificationRankingUpdate(ohos.event.notification.NotificationSortingMap) method.@Deprecated void onNotificationPosted(NotificationRequest info) throws RemoteException
info - Indicates the received NotificationRequest object.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void onNotificationPosted(NotificationRequest info, NotificationSortingMap sortingMap) throws RemoteException
info - Indicates the received NotificationRequest object.sortingMap - Indicates the sorting map used by the current subscriber to obtain
notification ranking information.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void onNotificationRemoved(NotificationRequest info) throws RemoteException
info - Indicates the removed NotificationRequest object.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void onNotificationRemoved(NotificationRequest info, NotificationSortingMap sortingMap, int deleteReason) throws RemoteException
info - Indicates the removed NotificationRequest object.sortingMap - Indicates the sorting map used by the current subscriber to obtain
notification ranking information.deleteReason - Indicates the reason for the removal. For details, see NotificationConstant.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void onNotificationRankingUpdate(NotificationSortingMap sortingMap) throws RemoteException
sortingMap - Indicates the sorting map used to obtain notification ranking information.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void onSubscribeConnected() throws RemoteException
RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void onSubscribeDisConnected() throws RemoteException
RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void onDisturbModeChange(int disturbMode) throws RemoteException
disturbMode - Indicates the current Do Not Disturb mode type.RemoteException - Throws this exception if an IPC exception occurs.