鴻蒙OS IAdvancedNotificationManager

2022-10-11 09:26 更新

IAdvancedNotificationManager

@Deprecated
public interface IAdvancedNotificationManager
extends IRemoteBroker

已棄用。 此更改從 API 版本 5 開始生效。此 API 僅在高級通知系統(tǒng)中使用,不對外部系統(tǒng)開放。

Since:

1

字段摘要

修飾符和類型 字段 描述
static int ANS_ABORT_ALL 已棄用。
static int ANS_ABORT_ONE 已棄用。
static int ANS_ADD_SLOTS 已棄用。
static int ANS_CAN_PUBLISH_NOTIFICATION_AS_BUNDLE 已棄用。
static int ANS_CREATE_SLOT 已棄用。
static int ANS_CREATE_SLOTGROUP 已棄用。
static int ANS_CREATE_SLOTGROUPS 已棄用。
static int ANS_DELETE_SLOT 已棄用。
static int ANS_DELETE_SLOTGROUP 已棄用。
static int ANS_GET_ACTIVE_NOTIFICATION 已棄用。
static int ANS_GET_ACTIVE_NOTIFICATION_NUM 已棄用。
static int ANS_GET_NOTIFICATION_AGENT 已棄用。
static int ANS_GET_SLOT 已棄用。
static int ANS_GET_SLOTGROUP 已棄用。
static int ANS_GET_SLOTGROUPS 已棄用。
static int ANS_GET_SLOTS 已棄用。
static int ANS_GET_SORTING 已棄用。
static int ANS_INQUIRY_BUNDLE_IMPORTANCE 已棄用。
static int ANS_INQUIRY_IS_SUSPENDED 已棄用。
static int ANS_NOTIFICATION_POLICY_ACCESS_PERMISSION 已棄用。
static int ANS_NOTIFICATIONS_ALLOWED 已棄用。
static int ANS_PUBLISH_NOTIFICATION_AS_BUNDLE 已棄用。
static int ANS_SCHEDULE_NOTIFICATION 已棄用。
static int ANS_SET_NOTIFICATION_AGENT 已棄用。
static int ANS_SET_NOTIFICATION_BADGE_NUM1 已棄用。
static int ANS_SET_NOTIFICATION_BADGE_NUM2 已棄用。
static String DESCRIPTOR 已棄用。

方法總結(jié)

修飾符和類型 方法 描述
void addNotificationSlot(String bundle, NotificationSlot slot) 已棄用。
void addNotificationSlotGroup(String bundle, NotificationSlotGroup slotGroup) 已棄用。
void addNotificationSlotGroups(String bundle, ListNotificationSlotGroup slotGroups) 已棄用。
void addNotificationSlots(String bundle, ListNotificationSlot slots) 已棄用。
boolean areNotificationsSuspended(String bundle) 已棄用。
void cancelAllNotifications(String bundleName, int userId) 已棄用。
void cancelNotification(String label, String hashCode) 已棄用。
boolean canPublishNotificationAsBundle(String bundle, String representativeBundle) 已棄用。
int getActiveNotificationNums(String bundle) 已棄用。
SetNotificationRequest getActiveNotifications(String bundle) 已棄用。
int getBundleImportance(String bundle) 已棄用。
NotificationSortingMap getCurrentAppSorting(String bundle) 已棄用。
String getNotificationAgent(String bundle) 已棄用。
NotificationSlot getNotificationSlot(String bundle, String slotId) 已棄用。
NotificationSlotGroup getNotificationSlotGroup(String bundle, String slotGroupId) 已棄用。
ListNotificationSlotGroup getNotificationSlotGroups(String bundle) 已棄用。
ListNotificationSlot getNotificationSlots(String bundle) 已棄用。
boolean hasNotificationPolicyAccessPermission(String bundle) 已棄用。
boolean isAllowedNotify() 已棄用。
void publishNotificationAsBundle(String bundle, String representativeBundle, NotificationRequest request) 已棄用。
void removeNotificationSlot(String bundle, String slotId) 已棄用。
void scheduleNotification(String label, String hashCode, NotificationRequest request) 已棄用。
void setNotificationAgent(String bundle, String agent) 已棄用。
void setNotificationBadgeNum(String bundle) 已棄用。
void setNotificationBadgeNum(String bundle, int num) 已棄用。
從接口 ohos.rpc.IRemoteBroker 繼承的方法
asObject

字段詳細(xì)信息

ANS_ABORT_ALL

@Deprecated static final int ANS_ABORT_ALL

已棄用。

標(biāo)識客戶端請求的 cancelAllNotifications(java.lang.String,int) 方法。

Since:

1

ANS_ABORT_ONE

@Deprecated static final int ANS_ABORT_ONE

已棄用。

標(biāo)識客戶端請求的 cancelNotification(java.lang.String,java.lang.String) 方法。

Since:

3

ANS_ADD_SLOTS

@Deprecated static final int ANS_ADD_SLOTS

已棄用。

標(biāo)識客戶端請求的 addNotificationSlots(java.lang.String,java.util.List) 方法。

Since:

3

ANS_CAN_PUBLISH_NOTIFICATION_AS_BUNDLE

@Deprecated static final int ANS_CAN_PUBLISH_NOTIFICATION_AS_BUNDLE

已棄用。

標(biāo)識客戶端請求的 canPublishNotificationAsBundle(java.lang.String,java.lang.String) 方法。

Since:

3

ANS_CREATE_SLOT

@Deprecated static final int ANS_CREATE_SLOT

已棄用。

標(biāo)識客戶端請求的 addNotificationSlot(java.lang.String,ohos.event.notification.NotificationSlot) 方法。

Since:

1

ANS_CREATE_SLOTGROUP

@Deprecated static final int ANS_CREATE_SLOTGROUP

已棄用。

標(biāo)識客戶端請求的 addNotificationSlotGroup(java.lang.String,ohos.event.notification.NotificationSlotGroup) 方法。

Since:

3

ANS_CREATE_SLOTGROUPS

@Deprecated static final int ANS_CREATE_SLOTGROUPS

已棄用。

標(biāo)識客戶端請求的 addNotificationSlotGroups(java.lang.String,java.util.List) 方法。

Since:

3

ANS_DELETE_SLOT

@Deprecated static final int ANS_DELETE_SLOT

已棄用。

標(biāo)識客戶端請求的 removeNotificationSlot(java.lang.String,java.lang.String) 方法。

Since:

1

ANS_DELETE_SLOTGROUP

@Deprecated static final int ANS_DELETE_SLOTGROUP

已棄用。

標(biāo)識客戶端請求的 NotificationHelper#removeNotificationSlotGroup(String) 方法。

Since:

3

ANS_GET_ACTIVE_NOTIFICATION

@Deprecated static final int ANS_GET_ACTIVE_NOTIFICATION

已棄用。

標(biāo)識客戶端請求的 getActiveNotifications(java.lang.String) 方法。

Since:

1

ANS_GET_ACTIVE_NOTIFICATION_NUM

@Deprecated static final int ANS_GET_ACTIVE_NOTIFICATION_NUM

已棄用。

標(biāo)識客戶端請求的 getActiveNotificationNums(java.lang.String) 方法。

Since:

1

ANS_GET_NOTIFICATION_AGENT

@Deprecated static final int ANS_GET_NOTIFICATION_AGENT

已棄用。

標(biāo)識客戶端請求的 getNotificationAgent(java.lang.String) 方法。

Since:

3

ANS_GET_SLOT

@Deprecated static final int ANS_GET_SLOT

已棄用。

標(biāo)識客戶端請求的 getNotificationSlot(java.lang.String,java.lang.String) 方法。

Since:

1

ANS_GET_SLOTGROUP

@Deprecated static final int ANS_GET_SLOTGROUP

已棄用。

標(biāo)識客戶端請求的 getNotificationSlotGroup(java.lang.String,java.lang.String) 方法。

Since:

3

ANS_GET_SLOTGROUPS

@Deprecated static final int ANS_GET_SLOTGROUPS

已棄用。

標(biāo)識客戶端請求的 getNotificationSlotGroups(java.lang.String) 方法。

Since:

3

ANS_GET_SLOTS

@Deprecated static final int ANS_GET_SLOTS

已棄用。

標(biāo)識客戶端請求的 getNotificationSlots(java.lang.String) 方法。

Since:

3

ANS_GET_SORTING

@Deprecated static final int ANS_GET_SORTING

已棄用。

標(biāo)識客戶端請求的 getCurrentAppSorting(java.lang.String) 方法。

Since:

2

ANS_INQUIRY_BUNDLE_IMPORTANCE

@Deprecated static final int ANS_INQUIRY_BUNDLE_IMPORTANCE

已棄用。

標(biāo)識客戶端請求的 getBundleImportance(java.lang.String) 方法。

Since:

3

ANS_INQUIRY_IS_SUSPENDED

@Deprecated static final int ANS_INQUIRY_IS_SUSPENDED

已棄用。

標(biāo)識客戶端請求的 areNotificationsSuspended(java.lang.String) 方法。

Since:

3

ANS_NOTIFICATIONS_ALLOWED

@Deprecated static final int ANS_NOTIFICATIONS_ALLOWED

已棄用。

標(biāo)識客戶端請求的 isAllowedNotify() 方法。

Since:

3

ANS_NOTIFICATION_POLICY_ACCESS_PERMISSION

@Deprecated static final int ANS_NOTIFICATION_POLICY_ACCESS_PERMISSION

已棄用。

標(biāo)識客戶端請求的 hasNotificationPolicyAccessPermission(java.lang.String) 方法。

Since:

3

ANS_PUBLISH_NOTIFICATION_AS_BUNDLE

@Deprecated static final int ANS_PUBLISH_NOTIFICATION_AS_BUNDLE

已棄用。

標(biāo)識客戶端請求的 publishNotificationAsBundle(java.lang.String,java.lang.String,ohos.event.notification.NotificationRequest) 方法。

Since:

3

ANS_SCHEDULE_NOTIFICATION

@Deprecated static final int ANS_SCHEDULE_NOTIFICATION

已棄用。

標(biāo)識客戶端請求的 scheduleNotification(java.lang.String,java.lang.String,ohos.event.notification.NotificationRequest) 方法。

Since:

1

ANS_SET_NOTIFICATION_AGENT

@Deprecated static final int ANS_SET_NOTIFICATION_AGENT

已棄用。

標(biāo)識客戶端請求的 setNotificationAgent(java.lang.String,java.lang.String) 方法。

Since:

3

ANS_SET_NOTIFICATION_BADGE_NUM1

@Deprecated static final int ANS_SET_NOTIFICATION_BADGE_NUM1

已棄用。

標(biāo)識客戶端請求的 setNotificationBadgeNum(java.lang.String,int) 方法。

Since:

1

ANS_SET_NOTIFICATION_BADGE_NUM2

@Deprecated static final int ANS_SET_NOTIFICATION_BADGE_NUM2

已棄用。

標(biāo)識客戶端請求的 setNotificationBadgeNum(java.lang.String) 方法。

Since:

1

DESCRIPTOR

@Deprecated static final String DESCRIPTOR

已棄用。

唯一標(biāo)識遠(yuǎn)程過程調(diào)用 (RPC) 對象。

Since:

1

方法詳情

scheduleNotification

@Deprecated void scheduleNotification(String label, String hashCode, NotificationRequest request) throws RemoteException

已棄用。

發(fā)布通知。

參數(shù):

參數(shù)名稱 參數(shù)描述
label 表示要發(fā)布的 NotificationRequest 對象的標(biāo)簽。 可能為空。
hashCode 表示要發(fā)布的 NotificationRequest 對象的哈希碼。
request 指示要發(fā)布的 NotificationRequest 對象。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

1

cancelAllNotifications

@Deprecated void cancelAllNotifications(String bundleName, int userId) throws RemoteException

已棄用。

取消指定應(yīng)用程序和用戶發(fā)布的所有通知。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundleName 表示應(yīng)用程序名稱。
userId 表示用戶標(biāo)識。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

1

cancelNotification

@Deprecated void cancelNotification(String label, String hashCode) throws RemoteException

已棄用。

取消與指定標(biāo)簽和哈希碼匹配的已發(fā)布通知。

參數(shù):

參數(shù)名稱 參數(shù)描述
label 指示要取消的 NotificationRequest 對象的標(biāo)簽。
hashCode 指示要取消的 NotificationRequest 對象的哈希碼。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

addNotificationSlot

@Deprecated void addNotificationSlot(String bundle, NotificationSlot slot) throws RemoteException

已棄用。

根據(jù)給定的應(yīng)用程序名稱和 NotificationSlot 對象創(chuàng)建通知槽。

NotificationSlot 實(shí)例初始化后不能直接使用。 相反,您必須調(diào)用此方法來創(chuàng)建通知槽并將槽 ID 綁定到 NotificationRequest 對象,以便發(fā)布的通知可以具有 NotificationSlot 中設(shè)置的所有特征。

使用該方法創(chuàng)建通知槽后,只能更改通知槽的名稱和描述。 對其他屬性的更改,例如振動(dòng)狀態(tài)和通知音,將不再生效。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。
slot 指示要?jiǎng)?chuàng)建的 NotificationSlot 對象。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

1

removeNotificationSlot

@Deprecated void removeNotificationSlot(String bundle, String slotId) throws RemoteException

已棄用。

根據(jù)給定的應(yīng)用程序名稱和槽 ID 刪除通知槽。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。
slotId 表示使用 addNotificationSlot(java.lang.String,ohos.event.notification.NotificationSlot) 創(chuàng)建的通知槽的 ID。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

1

getNotificationSlot

@Deprecated NotificationSlot getNotificationSlot(String bundle, String slotId) throws RemoteException

已棄用。

根據(jù)給定的應(yīng)用程序名稱和槽 ID 獲取通知槽。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。
slotId 表示使用 addNotificationSlot(java.lang.String,ohos.event.notification.NotificationSlot) 創(chuàng)建的通知槽的 ID。

返回:

返回創(chuàng)建的 NotificationSlot。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

1

getActiveNotifications

@Deprecated SetNotificationRequest getActiveNotifications(String bundle) throws RemoteException

已棄用。

獲取指定應(yīng)用的所有活動(dòng)通知。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。

返回:

返回指定應(yīng)用程序的所有活動(dòng) NotificationRequest 對象的集合。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

1

getActiveNotificationNums

@Deprecated int getActiveNotificationNums(String bundle) throws RemoteException

已棄用。

獲取指定應(yīng)用的活動(dòng)通知數(shù)。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。

返回:

返回指定應(yīng)用程序的活動(dòng)通知數(shù)。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

1

setNotificationBadgeNum

@Deprecated void setNotificationBadgeNum(String bundle, int num) throws RemoteException

已棄用。

設(shè)置在指定應(yīng)用程序的通知徽章上顯示的數(shù)字。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。
num 表示要顯示的數(shù)字。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

1

setNotificationBadgeNum

@Deprecated void setNotificationBadgeNum(String bundle) throws RemoteException

已棄用。

將指定應(yīng)用程序的活動(dòng)通知數(shù)設(shè)置為其通知徽章上顯示的數(shù)字。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

1

getCurrentAppSorting

@Deprecated NotificationSortingMap getCurrentAppSorting(String bundle) throws RemoteException

已棄用。

獲取當(dāng)前應(yīng)用的通知排序地圖。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。

返回:

返回當(dāng)前應(yīng)用程序的 NotificationSortingMap 對象。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

2

addNotificationSlotGroup

@Deprecated void addNotificationSlotGroup(String bundle, NotificationSlotGroup slotGroup) throws RemoteException

已棄用。

根據(jù)給定的應(yīng)用程序名稱和 NotificationSlotGroup 對象創(chuàng)建通知槽組。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。
slotGroup 指示要?jiǎng)?chuàng)建的 NotificationSlotGroup 對象。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

addNotificationSlotGroups

@Deprecated void addNotificationSlotGroups(String bundle, ListNotificationSlotGroup slotGroups) throws RemoteException

已棄用。

根據(jù)給定的應(yīng)用程序名稱和 NotificationSlotGroup 對象創(chuàng)建多個(gè)通知槽組。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。
slotGroups 指示要?jiǎng)?chuàng)建的多個(gè) NotificationSlotGroup 對象。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

getNotificationSlotGroup

@Deprecated NotificationSlotGroup getNotificationSlotGroup(String bundle, String slotGroupId) throws RemoteException

已棄用。

根據(jù)給定的應(yīng)用程序名稱和槽組 ID 獲取通知槽組。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。
slotGroupId 表示使用 addNotificationSlotGroup(java.lang.String,ohos.event.notification.NotificationSlotGroup) 創(chuàng)建的通知槽組的 ID。

返回:

返回創(chuàng)建的 NotificationSlotGroup。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

hasNotificationPolicyAccessPermission

@Deprecated boolean hasNotificationPolicyAccessPermission(String bundle) throws RemoteException

已棄用。

檢查此應(yīng)用程序是否有權(quán)修改請勿打擾 (DND) 通知策略。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。

返回:

如果此應(yīng)用程序具有權(quán)限,則返回 true; 否則返回 false。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

addNotificationSlots

@Deprecated void addNotificationSlots(String bundle, ListNotificationSlot slots) throws RemoteException

已棄用。

創(chuàng)建多個(gè)通知槽。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。
slots 指示要?jiǎng)?chuàng)建的通知槽。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

getNotificationSlots

@Deprecated ListNotificationSlot getNotificationSlots(String bundle) throws RemoteException

已棄用。

獲取該應(yīng)用的所有通知槽。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。

返回:

返回此應(yīng)用程序的所有通知槽。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

publishNotificationAsBundle

@Deprecated void publishNotificationAsBundle(String bundle, String representativeBundle, NotificationRequest request) throws RemoteException

已棄用。

以指定應(yīng)用程序包的名稱發(fā)布通知。 如果要發(fā)布的通知與未取消的已發(fā)布通知具有相同的 ID,則現(xiàn)有通知將被新通知替換。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。
representativeBundle 指示允許您的應(yīng)用程序通過調(diào)用 setNotificationAgent(java.lang.String,java.lang.String) 為其發(fā)布通知的應(yīng)用程序包的名稱。
request 指示要發(fā)布的 NotificationRequest 對象。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

setNotificationAgent

@Deprecated void setNotificationAgent(String bundle, String agent) throws RemoteException

已棄用。

允許另一個(gè)應(yīng)用程序充當(dāng)代理以您的應(yīng)用程序包的名稱發(fā)布通知。 您可以通過將 null 傳遞給此方法來撤銷此授權(quán)。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。
agent 指示可以為您的應(yīng)用程序發(fā)布通知的應(yīng)用程序包的名稱。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

getNotificationAgent

@Deprecated String getNotificationAgent(String bundle) throws RemoteException

已棄用。

獲取可以以您的應(yīng)用程序名稱發(fā)布通知的應(yīng)用程序包的名稱。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。

返回:

返回可以為您的應(yīng)用程序發(fā)布通知的應(yīng)用程序包的名稱(如果有); 否則返回 null。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

canPublishNotificationAsBundle

@Deprecated boolean canPublishNotificationAsBundle(String bundle, String representativeBundle) throws RemoteException

已棄用。

通過以給定代表包指示的另一個(gè)應(yīng)用程序的名稱調(diào)用 publishNotificationAsBundle(java.lang.String,java.lang.String,ohos.event.notification.NotificationRequest) 來檢查您的應(yīng)用程序是否有權(quán)發(fā)布通知。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。
representativeBundle 指示您的應(yīng)用程序所代表的應(yīng)用程序包的名稱。

返回:

如果您的應(yīng)用程序可以為給定的代表包發(fā)布通知,則返回 true; 否則返回 false。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

getNotificationSlotGroups

@Deprecated ListNotificationSlotGroup getNotificationSlotGroups(String bundle) throws RemoteException

已棄用。

根據(jù)給定的應(yīng)用程序名稱獲取屬于該應(yīng)用程序的所有通知槽組。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。

返回:

返回屬于該應(yīng)用的所有通知槽組。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

isAllowedNotify

@Deprecated boolean isAllowedNotify() throws RemoteException

已棄用。

檢查此應(yīng)用程序是否具有發(fā)布通知的權(quán)限。

返回:

如果此應(yīng)用程序具有權(quán)限,則返回 true; 否則返回 false。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

areNotificationsSuspended

@Deprecated boolean areNotificationsSuspended(String bundle) throws RemoteException

已棄用。

返回來自此捆綁包的通知是否已暫停。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。

返回:

布爾值是否暫停來自此捆綁包的通知。

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

getBundleImportance

@Deprecated int getBundleImportance(String bundle) throws RemoteException

已棄用。

返回來自調(diào)用包的通知的重要性。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundle 表示應(yīng)用程序名稱。

返回:

通知的重要性

Throws:

Throw名稱 Throw描述
RemoteException 如果發(fā)生 IPC 異常,則拋出此異常。

Since:

3

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號