La Vista previa para desarrolladores de Android 11 ya está disponible. Pruébala y comparte tus comentarios.

AspectRatio

public class AspectRatio
extends Object

java.lang.Object
   ↳ androidx.camera.core.AspectRatio


The aspect ratio of the use case.

Aspect ratio is the ratio of width to height.

Summary

Constants

int RATIO_16_9

16:9 standard aspect ratio.

int RATIO_4_3

4:3 standard aspect ratio.

Inherited methods

Constants

RATIO_16_9

public static final int RATIO_16_9

16:9 standard aspect ratio.

Constant Value: 1 (0x00000001)

RATIO_4_3

public static final int RATIO_4_3

4:3 standard aspect ratio.

Constant Value: 0 (0x00000000)