Skip to content

Commit 43cfbff

Browse files
committed
add checkpermission api
1 parent ddc0459 commit 43cfbff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/android/com/emj365/plugins/AudioRecorderAPI.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ public boolean execute(String action, JSONArray args, final CallbackContext call
6363
return true;
6464
}
6565

66+
if (action.equals("checkPermission")) {
67+
callbackContext.success();
68+
return true;
69+
}
70+
6671
if (action.equals("playback")) {
6772
MediaPlayer mp = new MediaPlayer();
6873
mp.setAudioStreamType(AudioManager.STREAM_MUSIC);

0 commit comments

Comments
 (0)