创新互联鸿蒙OS教程:鸿蒙OSReminderRequestTimer
ReminderRequestTimer

创新互联建站是专业的昌邑网站建设公司,昌邑接单;提供做网站、成都网站制作,网页设计,网站设计,建网站,PHP网站建设等专业做网站服务;采用PHP框架,可快速的进行昌邑网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,专业的做网站团队,希望更多企业前来合作!
java.lang.Object
|---ohos.event.notification.ReminderRequest
|---|---ohos.event.notification.ReminderRequestTimer
public class ReminderRequestTimer
extends ReminderRequest用于为倒计时计时器创建提醒的 ReminderRequest 子类。
Since:
6
嵌套类摘要
| 从接口 ohos.utils.Sequenceable 继承的嵌套类/接口 |
|---|
| Sequenceable.ProducerT |
字段摘要
| 从类 ohos.event.notification.ReminderRequest 继承的字段 |
|---|
| ACTION_BUTTON_TYPE_CLOSE, ACTION_BUTTON_TYPE_SNOOZE |
构造函数摘要
| 构造函数 | 描述 |
|---|---|
| ReminderRequestTimer(long countDownTimeInSeconds) | 用于创建 ReminderRequestTimer 实例的构造函数。 |
方法总结
| 修饰符和类型 | 方法 | 描述 |
|---|---|---|
| boolean | marshalling(Parcel out) | 将此 Sequenceable 对象编组为 Parcel。 |
| ReminderRequest | setTimeInterval(long timeIntervalInSeconds) | 设置此提醒的贪睡间隔,以秒为单位。 |
| boolean | unmarshalling(Parcel in) | 从 Parcel 中解组此 Sequenceable 对象。 |
| 从类 java.lang.Object 继承的方法 |
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 从类 ohos.event.notification.ReminderRequest 继承的方法 |
|---|
| compareTo, equals, getContent, getExpiredContent, getNotificationId, getRingDuration, getSlotId, getSnoozeContent, getSnoozeTimes, getTimeInterval, getTitle, hashCode, setActionButton, setContent, setExpiredContent, setIntentAgent, setMaxScreenIntentAgent, setNotificationId, setRingDuration, setSlotId, setSnoozeContent, setSnoozeTimes, setTitle, toString |
| 从接口 ohos.utils.Sequenceable 继承的方法 |
|---|
| hasFileDescriptor |
构造函数详细信息
ReminderRequestTimer
public ReminderRequestTimer(long countDownTimeInSeconds)
用于创建 ReminderRequestTimer 实例的构造函数。 倒计时提醒将在指定的持续时间后触发。
确保输入参数满足以下要求。 否则,应用程序可能会因为非法参数异常而崩溃。
- triggerTimeInSeconds 的值必须大于 0。
参数:
| 参数名称 | 参数描述 |
|---|---|
| countDownTimeInSeconds | 指示将触发此计时器提醒的持续时间。 |
Since:
6
方法详情
setTimeInterval
public ReminderRequest setTimeInterval(long timeIntervalInSeconds)
从类中复制的描述:ReminderRequest
设置此提醒的贪睡间隔,以秒为单位。 默认值为 0。
- 最小贪睡间隔为 5 分钟。 如果贪睡间隔设置为大于 0 且小于 5 分钟的值,系统默认将其转换为 5 分钟。
- 该方法对 ReminderRequestTimer 不生效
分享题目:创新互联鸿蒙OS教程:鸿蒙OSReminderRequestTimer
URL地址:http://www.jxjierui.cn/article/dhgjpse.html


咨询
建站咨询
