wx.previewImage 时触发。
/*** 打开图片预览界面* 调用环境:子进程** @param context 当前Activity* @param selectedIndex 当前选择的图片索引* @param pathList 图片路径列表* @return 不支持该接口,请返回false*/public abstract boolean openImagePreview(Context context, int selectedIndex, List<String> pathList);
/*** 打开图片预览界面** @param context 当前Activity* @param selectedIndex 当前选择的图片索引* @param pathList 图片路径列表* @return 不支持该接口,请返回false*/@Overridepublic boolean openImagePreview(Context context, int selectedIndex, List<String> pathList) {//todo start your image previewIntent intent = new Intent(context, CustomPreviewActivity.class);intent.putExtra("curIndex",selectedIndex);intent.putStringArrayListExtra("pathList", pathList);context.startActivity(intent);return true;}
文档反馈