AspectRatio

class AspectRatio
androidx.camera.core.AspectRatio

The aspect ratio of the use case.

Aspect ratio is the ratio of width to height.

Summary

Constants

static Int

16:9 standard aspect ratio.

static Int

4:3 standard aspect ratio.

Public constructors

The aspect ratio of the use case.

Constants

RATIO_16_9

static val RATIO_16_9: Int

16:9 standard aspect ratio.

Value: 1

RATIO_4_3

static val RATIO_4_3: Int

4:3 standard aspect ratio.

Value: 0

Public constructors

<init>

AspectRatio()

The aspect ratio of the use case.

Aspect ratio is the ratio of width to height.