SurfaceRequest.TransformationInfoListener
public
static
interface
SurfaceRequest.TransformationInfoListener
androidx.camera.core.SurfaceRequest.TransformationInfoListener |
Listener that receives updates of the SurfaceRequest.TransformationInfo
associated with the
SurfaceRequest
.
Summary
Public methods | |
---|---|
abstract
void
|
onTransformationInfoUpdate(SurfaceRequest.TransformationInfo transformationInfo)
Called when the |
Public methods
onTransformationInfoUpdate
public abstract 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 |
SurfaceRequest.TransformationInfo : apply the transformation info to transform Preview |