wx.previewImage for multimedia selection.
/*** Opens the image preview page* Calling environment: Subprocess** @param context - Current Activity* @param selectedIndex - Index of the selected image* @param pathList - Image path list* @return - Returns false if this API is not supported*/public abstract boolean openImagePreview(Context context, int selectedIndex, List<String> pathList);
/*** Opens the image preview page** @param context - Current Activity* @param selectedIndex - Index of the selected image* @param pathList - Image path list* @return - Returns false if this API is not supported*/@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;}
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback