get Camera Display Orientation Degrees
Gets clockwise orientation of camera sensor respect to display orientation.
Return
Clockwise orientation of camera sensor expressed in degrees.
Parameters
context
Android context.
camera Id
A camera id.
Throws
If application does not have permission to access the camera.
If camera service is not available.
fun getCameraDisplayOrientationDegrees(context: Context, characteristics: CameraCharacteristics): Int
Gets clockwise orientation of camera sensor respect to display orientation.
Return
Clockwise orientation of camera sensor expressed in degrees.
Parameters
context
Android context.
characteristics
Information about the camera.