MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getImage

Method getImage

src/plugins/sdcard/src/android/SDcard.java:261–269  ·  view source on GitHub ↗
(String mimeType, CallbackContext callback)

Source from the content-addressed store, hash-verified

259 }
260
261 public void getImage(String mimeType, CallbackContext callback) {
262 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
263 if (mimeType == null) mimeType = "image/*";
264
265 intent.addCategory(Intent.CATEGORY_OPENABLE);
266 intent.setType(mimeType);
267 activityResultCallback = callback;
268 cordova.startActivityForResult(this, intent, this.PICK_FROM_GALLERY);
269 }
270
271 public void getStorageVolumes(CallbackContext callback) {
272 try {

Callers 1

executeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected