新聞中心
NotificationConstant

創(chuàng)新互聯(lián)建站服務(wù)項目包括浦城網(wǎng)站建設(shè)、浦城網(wǎng)站制作、浦城網(wǎng)頁制作以及浦城網(wǎng)絡(luò)營銷策劃等。多年來,我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢、行業(yè)經(jīng)驗、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,浦城網(wǎng)站推廣取得了明顯的社會效益與經(jīng)濟效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到浦城省份的部分城市,未來相信會繼續(xù)擴大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!
java.lang.Object
|---ohos.event.notification.NotificationConstant
public final class NotificationConstant
extends Object提供靜態(tài)常量來指示通知刪除原因。
常量是調(diào)用 NotificationSubscriber#onCanceled(NotificationRequest, NotificationSortingMap, int) 時使用的 int 參數(shù)。
Since:
2
嵌套類摘要
| 修飾符和類型 | 類 | 描述 |
|---|---|---|
| static class | NotificationConstant.DisturbMode | 枚舉免打擾模式的類型。 |
| static class | NotificationConstant.InputEditType | 枚舉在通知中提供給用戶的選項的編輯類型。 |
| static class | NotificationConstant.InputsSource | 枚舉用戶輸入源。 |
| static class | NotificationConstant.SemanticActionButton | 枚舉觸發(fā) NotificationActionButton 時關(guān)聯(lián)的 IntentAgent 將采取的操作。 |
字段摘要
| 修飾符和類型 | 字段 | 描述 |
|---|---|---|
| static int | APP_CANCEL_ALL_REASON_DELETE | 表示由于應(yīng)用程序取消了所有通知而刪除了通知。 |
| static int | APP_CANCEL_REASON_DELETE | 表示由于應(yīng)用程序取消通知而刪除通知。 |
| static int | APP_CANCEL_REASON_OTHER | 表示通知因其他原因被刪除。 |
| static int | CANCEL_ALL_REASON_DELETE | 表示由于用戶清除所有通知而刪除通知。 |
| static int | CANCEL_REASON_DELETE | 表示通知因用戶清除而被刪除。 |
| static int | CLICK_REASON_DELETE | 表示通知因為被點擊而被刪除。 |
| static int | ERROR_REASON_DELETE | 指示由于 UI 錯誤而刪除通知。 |
| static String | EXTRA_INPUTS_SOURCE | 鍵表示輸入源。 |
| static int | PACKAGE_BANNED_REASON_DELETE | 表示由于應(yīng)用程序被禁止發(fā)送通知而刪除通知。 |
| static int | PACKAGE_CHANGED_REASON_DELETE | 表示由于對應(yīng)用程序進行了更改而刪除了通知。 |
| static int | USER_STOPPED_REASON_DELETE | 指示由于應(yīng)用程序上下文已停止而刪除通知。 |
方法總結(jié)
| 從類 java.lang.Object 繼承的方法 |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段詳細信息
APP_CANCEL_ALL_REASON_DELETE
public static final int APP_CANCEL_ALL_REASON_DELETE
表示由于應(yīng)用程序取消了所有通知而刪除了通知。
APP_CANCEL_REASON_DELETE
public static final int APP_CANCEL_REASON_DELETE
表示由于應(yīng)用程序取消通知而刪除通知。
APP_CANCEL_REASON_OTHER
public static final int APP_CANCEL_REASON_OTHER
表示通知因其他原因被刪除。
CANCEL_ALL_REASON_DELETE
public static final int CANCEL_ALL_REASON_DELETE
表示由于用戶清除所有通知而刪除通知。
CANCEL_REASON_DELETE
public static final int CANCEL_REASON_DELETE
表示通知因用戶清除而被刪除。
CLICK_REASON_DELETE
public static final int CLICK_REASON_DELETE
表示通知因為被點擊而被刪除。
ERROR_REASON_DELETE
public static final int ERROR_REASON_DELETE
指示由于 UI 錯誤而刪除通知。
EXTRA_INPUTS_SOURCE
public static final String EXTRA_INPUTS_SOURCE
鍵表示輸入源。
PACKAGE_BANNED_REASON_DELETE
public static final int PACKAGE_BANNED_REASON_DELETE
表示由于應(yīng)用程序被禁止發(fā)送通知而刪除通知。
PACKAGE_CHANGED_REASON_DELETE
public static final int PACKAGE_CHANGED_REASON_DELETE
表示由于對應(yīng)用程序進行了更改而刪除了通知。
USER_STOPPED_REASON_DELETE
public static final int USER_STOPPED_REASON_DELETE
指示由于應(yīng)用程序上下文已停止而刪除通知。
當前名稱:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSNotificationConstant
網(wǎng)頁網(wǎng)址:http://www.dlmjj.cn/article/cocsjoj.html


咨詢
建站咨詢
