Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 928 Bytes

File metadata and controls

26 lines (23 loc) · 928 Bytes

Cordova MultiImageSelector Plugin

Description

Cordova Android Plugin for select multiple images from Gallery. This plugin developed from existing Android open source library MultipleImagePick. Also this plugin uses Universal image loader library for asynchronous loading and caching.

Usage

window.plugins.multiImageSelector.getPictures(
    function(results) {
        for (var i = 0; i < results.paths.length; i++) {
            alert('Image URI: ' + results.paths[i]);
        }
    }, function (error) {
        alert('Error: ' + error);
    }, {
        type: "multiple",
        limit: 10,
        cancelButtonText: "取消",
        okButtonText: "确定",
        titleText: "选择图片",
        errorMessageText: "选择图片的个数超过了上限~!"
    }
);