public static interface Camera3.PreviewSizeCallback
Modifier and Type | Method and Description |
---|---|
void |
previewSizeSelected(int orientation,
android.util.Size previewSize)
A callback function that you can implement if you want to be notified when the camera
chooses a preview size.
|
void previewSizeSelected(int orientation, android.util.Size previewSize)
orientation
- may be one of
Configuration.ORIENTATION_PORTRAIT
or
Configuration.ORIENTATION_LANDSCAPE
previewSize
- the size that was chosenPreviewHandler#PreviewHandler(SurfaceTexture, Size, CaptureRequestConfiguration,
PreviewSizeCallback)