【函数】 | void set(String argu) |
【说明】 | 设置闹钟。 |
【返回】 | 无 |
【参数】 |
argu:型如“key1=value1;key2=value2;......”的参数表。首先,该参数表支持rexseeNotification.show()函数的所有参数,用于显示通知(调用rexseeNotification.show()),请参见rexseeNotification。另外,该参数表增加了以下参数:
|
【示例】 |
rexseeAlarm.set('command=startApplication;startApplicationUrl=http://www.rexsee.com/rexsee/alarmClock.html;alermName=test;alermfirsttime='+(rexseeAlarm.getCurrentTime()+5000)+';title=闹钟测试;message=闹钟测试内容;url=http://www.rexsee.com/rexsee/alarmClock.html');
运行示例
rexseeDialog.toast('设置完毕!'); |
【函数】 | JsonObjectArray get() |
【说明】 | 读取所有的闹钟信息。 |
【返回】 | JSON对象数组,使用eval('('+json+')')转换为JavaScript对象数组。 |
【参数】 | 无 |
【示例】 |
alert(rexseeAlarm.get());
运行示例
|
【函数】 | void cancel(String name) |
【说明】 | 取消闹钟。 |
【返回】 | 无 |
【参数】 | name:闹钟名称。 |
【示例】 |
rexseeAlarm.cancel('test');
运行示例
rexseeDialog.toast('取消完毕!'); |
【函数】 | long getCurrentTime() |
【说明】 | 读取当前的时间戳。 |
【返回】 | 当前的时间戳。 |
【参数】 | 无 |
【示例】 |
alert(rexseeAlarm.getCurrentTime());
运行示例
|
【函数】 | long getMillisPerHour() |
【说明】 | 读取一小时的毫秒数。 |
【返回】 | 毫秒数。 |
【参数】 | 无 |
【示例】 |
alert(rexseeAlarm.getMillisPerHour());
运行示例
|
【函数】 | long getMillisPerDay() |
【说明】 | 读取一天的毫秒数。 |
【返回】 | 毫秒数。 |
【参数】 | 无 |
【示例】 |
alert(rexseeAlarm.getMillisPerDay());
运行示例
|