Here are the examples of the java api @android.support.annotation.RequiresPermission(android.Manifest.permission.CAMERA) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : CameraUtil.java
with MIT License
from maxiaozhou1234
with MIT License
from maxiaozhou1234
@SuppressLint("MissingPermission")
@RequiresPermission(android.Manifest.permission.CAMERA)
private void openCamera(CameraManager cameraManager, CameraConfig config) {
try {
cameraManager.openCamera(config.cameraId, config.cameraStateCallback, handler);
} catch (CameraAccessException e) {
e.printStackTrace();
}
}