rexseeNotification
返回手册目录
【函数】void show(String arguments)
【说明】在通知栏显示通知。
【返回】
【参数】 arguments:型如“key1=value1;key2=value2;......”的参数字符串。有效的参数如下:
  • id:默认为auto,表示使用当前时间戳作为id。如果设定,应使用数字。
  • ticker:通知栏提醒文字,默认为空。
  • title:通知标题,默认为空。
  • message:通知内容,默认为空。
  • url:点击通知条目时的动作,默认为空。
  • timeplus:单位为秒,默认为0秒,在当前时间戳上叠加。
  • cancelable:true或false,默认为true。是否允许取消(通知栏中的取消按钮是否有效)。
  • autocancel:true或false,默认为true。是否用户点击后自动取消。
  • insistent:true或false,默认为false。是否在用户未查看时反复提醒。
  • onlyalertonce:true或false,默认为false。是否在id相同的通知发生时重复提醒。
  • showlights:true或false,默认为true。是否允许使用灯光。
  • sounds:true或false,默认为true。提醒时是否使用声音,如果为true,使用当前的通知铃声。
  • lights:true或false,默认为true。提醒时是否使用灯光。
  • vibrate:true或false,默认为false。提醒时是否震动,如果为true,使用当前的通知震动模式。
  • soundpath:音频文件的路径。
【示例】
rexseeNotification.show('id=1;ticker=Dial ChinaMobile;title=Dial ChinaMobile;message=Dial ChinaMobile;url=tel:10086;');
运行示例
rexseeNotification.show('id=2;ticker=Access Rexsee;title=Access Rexsee;message=Access Rexsee;url=http://www.rexsee.com/EN/help/index.php;');
运行示例 运行示例

【函数】void hide(int id)
【说明】隐藏id指定的通知。
【返回】
【参数】id:通知的id。
【示例】
rexseeNotification.hide(1);
运行示例
返回手册目录