rexseeMMS
返回手册目录
【函数】JsonArray getContentUris()
【说明】读取彩信相关的所有数据库表的Uri地址。
【返回】Json数组字符串,可以用eval('('+json+')')转换为JavaScript数组。
【参数】
【示例】
alert(rexseeMMS.getContentUris());
运行示例

【函数】JsonObjectArray get(int number)
【说明】读取若干条彩信。
【返回】Json对象数组字符串,可以用eval('('+json+')')转换为JavaScript对象数组,注意,其中body字段是escape过的,使用前需要unescape。
【参数】number:要读取的彩信条数。
【示例】
alert(rexseeMMS.get(10));
运行示例
alert(unescape(eval('('+rexseeMMS.get(1)+')')[0].sub));
运行示例

【函数】JsonObjectArray getUnread(int number)
【说明】读取若干条未读彩信。
【返回】Json对象数组字符串,可以用eval('('+json+')')转换为JavaScript对象数组,注意,其中body字段是escape过的,使用前需要unescape。
【参数】number:要读取的彩信条数。
【示例】
alert(rexseeMMS.getUnread(10));
运行示例

【函数】JsonObjectArray getRead(int number)
【说明】读取若干条已读彩信。
【返回】Json对象数组字符串,可以用eval('('+json+')')转换为JavaScript对象数组,注意,其中body字段是escape过的,使用前需要unescape。
【参数】number:要读取的彩信条数。
【示例】
alert(rexseeMMS.getRead(10));
运行示例

【函数】JsonObjectArray getInbox(int number)
【说明】从收件箱读取若干条彩信。
【返回】Json对象数组字符串,可以用eval('('+json+')')转换为JavaScript对象数组,注意,其中body字段是escape过的,使用前需要unescape。
【参数】number:要读取的彩信条数。
【示例】
alert(rexseeMMS.getInbox(10));
运行示例

【函数】JsonObjectArray getSent(int number)
【说明】读取若干条已发彩信。
【返回】Json对象数组字符串,可以用eval('('+json+')')转换为JavaScript对象数组,注意,其中body字段是escape过的,使用前需要unescape。
【参数】number:要读取的彩信条数。
【示例】
alert(rexseeMMS.getSent(10));
运行示例

【函数】JsonObjectArray getByThread(int threadID)
【说明】读取会话中所有彩信,使用rexseeSMS.getThreads()读取会话信息。
【返回】Json对象数组字符串,可以用eval('('+json+')')转换为JavaScript对象数组。
【参数】threadID:会话ID。
【示例】
alert(rexseeMMS.getByThread(9));
运行示例

【函数】JsonObjectArray getData(String selection, int number)
【说明】根据条件读取若干条彩信。
【返回】Json对象数组字符串,可以用eval('('+json+')')转换为JavaScript对象数组,注意,其中body字段是escape过的,使用前需要unescape。
【参数】selection:WHERE选择子句。
number:查询的条数。
【示例】
alert(rexseeMMS.getData('msg_box=3',-1));
运行示例
alert(unescape(eval('('+rexseeMMS.getData('msg_box=3',1)+')')[0].sub));
运行示例

【函数】JsonObjectArray getAddresses(long mmsID)
【说明】读取彩信的地址。
【返回】Json对象数组字符串,可以用eval('('+json+')')转换为JavaScript对象数组。
【参数】mmsID:彩信的id(字段"_id")。
【示例】
alert(rexseeMMS.getAddresses(4));
运行示例 getMyNumber

【函数】JsonObjectArray getParts(long mmsID)
【说明】读取彩信的详细内容。
【返回】Json对象数组字符串,可以用eval('('+json+')')转换为JavaScript对象数组,注意,其中text字段是escape过的,使用前需要unescape。
【参数】mmsID:彩信的id(字段"_id")。
【示例】
alert(rexseeMMS.getParts(4));
运行示例
alert(unescape(eval('('+rexseeMMS.getParts(4)+')')[2].text));
运行示例

【函数】boolean extract(long mmsID, String path)
【说明】将彩信的详细内容复制到文件夹中。
【返回】成功返回true,失败返回false。
【参数】mmsID:彩信的id(字段"_id")。
path:以"file://"开头的文件夹路径。
【示例】
alert(rexseeMMS.extract(4,rexseeStorage.getRoot()+'mmsExtract'));
运行示例
返回手册目录