public interface

SurfaceRequest.TransformationInfoListener

 androidx.camera.core.SurfaceRequest.TransformationInfoListener

Overview

Listener that receives updates of the SurfaceRequest.TransformationInfo associated with the SurfaceRequest.

Summary

Methods
public voidonTransformationInfoUpdate(SurfaceRequest.TransformationInfo transformationInfo)

Called when the SurfaceRequest.TransformationInfo is updated.

Methods

public void onTransformationInfoUpdate(SurfaceRequest.TransformationInfo transformationInfo)

Called when the SurfaceRequest.TransformationInfo is updated.

This is called when the transformation info becomes available or is updated. The rotation degrees is updated after calling Preview.setTargetRotation(int), and the crop rect is updated after changing the ViewPort associated with the Preview.

Parameters:

transformationInfo: apply the transformation info to transform Preview

See also: SurfaceRequest.TransformationInfo, Preview.setTargetRotation(int), Preview.Builder.setTargetRotation(int), CameraCharacteristics, ViewPort