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

Method openDocumentFile

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

Source from the content-addressed store, hash-verified

249 }
250
251 public void openDocumentFile(String mimeType, CallbackContext callback) {
252 Intent intent = new Intent();
253 if (mimeType == null) mimeType = "*/*";
254 intent.setAction(Intent.ACTION_OPEN_DOCUMENT);
255 intent.addCategory(Intent.CATEGORY_OPENABLE);
256 intent.setType(mimeType);
257 activityResultCallback = callback;
258 cordova.startActivityForResult(this, intent, this.OPEN_DOCUMENT);
259 }
260
261 public void getImage(String mimeType, CallbackContext callback) {
262 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);

Callers 1

executeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected