CameraController.OutputSize
class CameraController.OutputSize
Represents the output size of a UseCase.
This class is a preferred output size to be used with CameraController. The preferred output size can be based on either resolution or aspect ratio, but not both.
Summary
Constants |
|
|---|---|
const Int |
A value that represents the aspect ratio is not assigned. |
Public constructors |
|---|
Creates a |
Creates a |
Public functions |
|
|---|---|
Int |
Gets the value of aspect ratio. |
Size? |
Gets the value of resolution. |
String |
|
Constants
const val UNASSIGNED_ASPECT_RATIO = -1: Int
A value that represents the aspect ratio is not assigned.
Public constructors
OutputSize(aspectRatio: Int)
Creates a OutputSize that is based on aspect ratio.
| See also | |
|---|---|
setTargetAspectRatio |
|
setTargetAspectRatio |
OutputSize(resolution: Size)
Creates a OutputSize that is based on resolution.
| See also | |
|---|---|
setTargetResolution |
|
setTargetResolution |
Public functions
fungetAspectRatio(): Int
Gets the value of aspect ratio.
| Returns | |
|---|---|
Int |
|
fungetResolution(): Size?
Gets the value of resolution.
| Returns | |
|---|---|
Size? |
|