SurfaceRequest.TransformationInfoListener

public interface SurfaceRequest.TransformationInfoListener


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

Summary

Public methods

abstract void

Called when the TransformationInfo is updated.

Public methods

onTransformationInfoUpdate

Added in 1.0.0
abstract void onTransformationInfoUpdate(
    @NonNull SurfaceRequest.TransformationInfo transformationInfo
)

Called when the TransformationInfo is updated.

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

Parameters
@NonNull SurfaceRequest.TransformationInfo transformationInfo

apply the transformation info to transform Preview