diff --git a/android/src/main/java/com/lwansbrough/RCTCamera/RCTCameraModule.java b/android/src/main/java/com/lwansbrough/RCTCamera/RCTCameraModule.java index 82d2e7e..1dd3edb 100644 --- a/android/src/main/java/com/lwansbrough/RCTCamera/RCTCameraModule.java +++ b/android/src/main/java/com/lwansbrough/RCTCamera/RCTCameraModule.java @@ -608,34 +608,6 @@ public class RCTCameraModule extends ReactContextBaseJavaModule } } } - - @ReactMethod - public void checkDeviceAuthorizationStatus(final Promise promise) { - if (!checkForPermission(Manifest.permission.CAMERA)) { - promise.resolve(false); - } else { - promise.resolve(checkForPermission(Manifest.permission.RECORD_AUDIO)); - } - } - - @ReactMethod - public void checkVideoAuthorizationStatus(final Promise promise) { - promise.resolve(checkForPermission(Manifest.permission.CAMERA)); - } - - @ReactMethod - public void checkAudioAuthorizationStatus(final Promise promise) { - promise.resolve(checkForPermission(Manifest.permission.RECORD_AUDIO)); - } - - private boolean checkForPermission(String permission) { - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { - return true; - } - - int p = ContextCompat.checkSelfPermission(getReactApplicationContext(), permission); - return p == PackageManager.PERMISSION_GRANTED; - } @ReactMethod public void capture(final ReadableMap options, final Promise promise) {