get Camera Display Orientation
Gets orientation of camera sensor. Camera sensor orientation is computed in terms of device orientation.
Return
Orientation of camera sensor.
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 getCameraDisplayOrientation(context: Context, characteristics: CameraCharacteristics): CameraToDisplayOrientation
Gets orientation of camera sensor. Camera sensor orientation is computed in terms of device orientation.
Return
Orientation of camera sensor.
Parameters
context
Android context.
characteristics
Information about the camera.