新聞中心
ReminderRequestTimer

創(chuàng)新互聯(lián)建站是專業(yè)的昌邑網(wǎng)站建設公司,昌邑接單;提供做網(wǎng)站、成都網(wǎng)站制作,網(wǎng)頁設計,網(wǎng)站設計,建網(wǎng)站,PHP網(wǎng)站建設等專業(yè)做網(wǎng)站服務;采用PHP框架,可快速的進行昌邑網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團隊,希望更多企業(yè)前來合作!
java.lang.Object
|---ohos.event.notification.ReminderRequest
|---|---ohos.event.notification.ReminderRequestTimer
public class ReminderRequestTimer
extends ReminderRequest用于為倒計時計時器創(chuàng)建提醒的 ReminderRequest 子類。
Since:
6
嵌套類摘要
| 從接口 ohos.utils.Sequenceable 繼承的嵌套類/接口 |
|---|
| Sequenceable.ProducerT |
字段摘要
| 從類 ohos.event.notification.ReminderRequest 繼承的字段 |
|---|
| ACTION_BUTTON_TYPE_CLOSE, ACTION_BUTTON_TYPE_SNOOZE |
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| ReminderRequestTimer(long countDownTimeInSeconds) | 用于創(chuàng)建 ReminderRequestTimer 實例的構(gòu)造函數(shù)。 |
方法總結(jié)
| 修飾符和類型 | 方法 | 描述 |
|---|---|---|
| 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 |
構(gòu)造函數(shù)詳細信息
ReminderRequestTimer
public ReminderRequestTimer(long countDownTimeInSeconds)
用于創(chuàng)建 ReminderRequestTimer 實例的構(gòu)造函數(shù)。 倒計時提醒將在指定的持續(xù)時間后觸發(fā)。
確保輸入?yún)?shù)滿足以下要求。 否則,應用程序可能會因為非法參數(shù)異常而崩潰。
- triggerTimeInSeconds 的值必須大于 0。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| countDownTimeInSeconds | 指示將觸發(fā)此計時器提醒的持續(xù)時間。 |
Since:
6
方法詳情
setTimeInterval
public ReminderRequest setTimeInterval(long timeIntervalInSeconds)
從類中復制的描述:ReminderRequest
設置此提醒的貪睡間隔,以秒為單位。 默認值為 0。
- 最小貪睡間隔為 5 分鐘。 如果貪睡間隔設置為大于 0 且小于 5 分鐘的值,系統(tǒng)默認將其轉(zhuǎn)換為 5 分鐘。
- 該方法對 ReminderRequestTimer 不生效
本文名稱:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSReminderRequestTimer
網(wǎng)站地址:http://fisionsoft.com.cn/article/dhgjpse.html


咨詢
建站咨詢
