rexseeWallpaper
返回手册目录
【函数】JsonObject getDesiredMinimumSize()
【说明】读取系统建议的最适合的壁纸尺寸。
【返回】Json对象,用eval('('+json+')')转换为JavaScript对象。
【参数】
【示例】
alert(rexseeWallpaper.getDesiredMinimumSize());
运行示例

【函数】boolean set(String path)
【说明】将指定图片设为壁纸。
【返回】true或false。
【参数】path:图片地址。
【示例】
alert(rexseeWallpaper.set('file:///android_asset/pageBg.jpg'));
运行示例

【函数】boolean cropAndSet(String path, String successAlert, String failAlert)
【函数】boolean cropAndSet(String path)
【说明】将指定图片设为壁纸。
【返回】true或false。
【参数】path:图片地址。
successAlert:成功时的提示信息,为空不会提示。
failAlert:失败时的提示信息,为空不会提示。
【示例】
rexseeWallpaper.cropAndSet('file:///android_asset/pageBg.jpg','成功了!','失败了!');
运行示例

【函数】boolean clear()
【说明】取消用户设置的壁纸,恢复系统默认壁纸。
【返回】true或false。
【参数】
【示例】
alert(rexseeWallpaper.clear());
运行示例
返回手册目录