NotificationConstant

创新互联建站服务项目包括浦城网站建设、浦城网站制作、浦城网页制作以及浦城网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,浦城网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到浦城省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!
java.lang.Object
|---ohos.event.notification.NotificationConstant
public final class NotificationConstant
extends Object提供静态常量来指示通知删除原因。
常量是调用 NotificationSubscriber#onCanceled(NotificationRequest, NotificationSortingMap, int) 时使用的 int 参数。
Since:
2
嵌套类摘要
| 修饰符和类型 | 类 | 描述 |
|---|---|---|
| static class | NotificationConstant.DisturbMode | 枚举免打扰模式的类型。 |
| static class | NotificationConstant.InputEditType | 枚举在通知中提供给用户的选项的编辑类型。 |
| static class | NotificationConstant.InputsSource | 枚举用户输入源。 |
| static class | NotificationConstant.SemanticActionButton | 枚举触发 NotificationActionButton 时关联的 IntentAgent 将采取的操作。 |
字段摘要
| 修饰符和类型 | 字段 | 描述 |
|---|---|---|
| static int | APP_CANCEL_ALL_REASON_DELETE | 表示由于应用程序取消了所有通知而删除了通知。 |
| static int | APP_CANCEL_REASON_DELETE | 表示由于应用程序取消通知而删除通知。 |
| 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 | 表示由于应用程序被禁止发送通知而删除通知。 |
| static int | PACKAGE_CHANGED_REASON_DELETE | 表示由于对应用程序进行了更改而删除了通知。 |
| static int | USER_STOPPED_REASON_DELETE | 指示由于应用程序上下文已停止而删除通知。 |
方法总结
| 从类 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
表示由于应用程序取消了所有通知而删除了通知。
APP_CANCEL_REASON_DELETE
public static final int APP_CANCEL_REASON_DELETE
表示由于应用程序取消通知而删除通知。
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
表示由于应用程序被禁止发送通知而删除通知。
PACKAGE_CHANGED_REASON_DELETE
public static final int PACKAGE_CHANGED_REASON_DELETE
表示由于对应用程序进行了更改而删除了通知。
USER_STOPPED_REASON_DELETE
public static final int USER_STOPPED_REASON_DELETE
指示由于应用程序上下文已停止而删除通知。
分享题目:创新互联鸿蒙OS教程:鸿蒙OSNotificationConstant
标题URL:http://www.jxjierui.cn/article/cocsjoj.html


咨询
建站咨询
