DefaultSourceInfoProvider

open class DefaultSourceInfoProvider(val isMirror: Boolean = false, @IntRange(from = 0, to = 359) val rotationDegrees: Int = 0) : ISourceInfoProvider

Constructors

Link copied to clipboard
constructor(isMirror: Boolean = false, @IntRange(from = 0, to = 359) rotationDegrees: Int = 0)

Properties

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

True if the source is natively mirrored.

Link copied to clipboard
open override val rotationDegrees: Int = 0

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