The Android Developer Challenge is back! Submit your idea before December 2.

AspectRatio

public final enum AspectRatio
extends Enum<AspectRatio>

java.lang.Object
   ↳ java.lang.Enum<androidx.camera.core.AspectRatio>
     ↳ androidx.camera.core.AspectRatio


The aspect ratio of the use case.

Summary

Enum values

AspectRatio  RATIO_16_9

16:9 standard aspect ratio. 

AspectRatio  RATIO_4_3

4:3 standard aspect ratio. 

Public methods

static AspectRatio valueOf(String name)
static final AspectRatio[] values()

Inherited methods

Enum values

RATIO_16_9

public static final AspectRatio RATIO_16_9

16:9 standard aspect ratio.

RATIO_4_3

public static final AspectRatio RATIO_4_3

4:3 standard aspect ratio.

Public methods

valueOf

public static AspectRatio valueOf (String name)

Parameters
name String

Returns
AspectRatio

values

public static final AspectRatio[] values ()

Returns
AspectRatio[]