gpt4 book ai didi

tizen - 如何在tizen中设置日历闹钟

转载 作者:行者123 更新时间:2023-12-05 01:24:34 24 4
gpt4 key购买 nike

我可以在我的日历中设置一个事件。我的代码是

var ev = new tizen.CalendarEvent
({
description : document.getElementById('des').value,
summary : document.getElementById('summ').value,
startDate : new tizen.TZDate(yy, mm, dd, h, m),
duration : new tizen.TimeDuration(dur1, "HOURS"),
location : document.getElementById('loc').value,
});

我怎么能设置一个 calendarAlarm 事件呢?即我想为事件启用警报。如果有人知道,请提供代码。

提前致谢。

最佳答案

最后我得到了答案

calendar = tizen.calendar.getDefaultCalendar("EVENT");
var ev = new tizen.CalendarEvent({
description : document.getElementById('description1').value,
summary : document.getElementById('Summary1').value,
startDate : new tizen.TZDate(yy, mm, dd, h, m),
duration : new tizen.TimeDuration(dur1, "HOURS"),
location : document.getElementById('Location1').value,
var alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(1, "MINS"), "SOUND");
ev.alarms = [alarm];
calendar.add(ev);

关于tizen - 如何在tizen中设置日历闹钟,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11522544/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com