CameraInfoProvider

class CameraInfoProvider(@IntRange(from = 0, to = 359) val rotationDegrees: Int, facingDirection: Int?) : ISourceInfoProvider

Constructors

Link copied to clipboard
constructor(@IntRange(from = 0, to = 359) rotationDegrees: Int, facingDirection: Int?)

Properties

Link copied to clipboard
Link copied to clipboard
open override val isMirror: Boolean

True if the source is natively mirrored.

Link copied to clipboard
open override val rotationDegrees: Int

Orientation in degrees of the source. For camera, it is the sensor orientation. To follow device rotation use, it is the current device rotation. Expected values: 0, 90, 180, 270.

Functions

Link copied to clipboard
@IntRange(from = 0, to = 359)
open override fun getRelativeRotationDegrees(targetRotation: Int, requiredMirroring: Boolean): Int

Calculates the relative rotation between the source and the destination.

Link copied to clipboard
open override fun getSurfaceSize(targetResolution: Size): Size

Gets the size of the surface to allocate to display the source.

Link copied to clipboard
open override fun toString(): String