Android 11 デベロッパー プレビュー 2 が公開されました。ぜひお試しのうえ、フィードバックをお寄せください

ZoomState

public interface ZoomState

androidx.camera.core.ZoomState


An interface which contains the zoom related information from a camera.

Applications can retrieve an instance via CameraInfo.getZoomState().

Summary

Public methods

abstract float getLinearZoom()

Returns the linearZoom which is in range [0..1].

abstract float getMaxZoomRatio()

Returns the maximum zoom ratio.

abstract float getMinZoomRatio()

Returns the minimum zoom ratio.

abstract float getZoomRatio()

Returns the zoom ratio.

Public methods

getLinearZoom

public abstract float getLinearZoom ()

Returns the linearZoom which is in range [0..1].

LinearZoom 0 represents the minimum zoom while linearZoom 1.0 represents the maximum zoom.

Returns
float

getMaxZoomRatio

public abstract float getMaxZoomRatio ()

Returns the maximum zoom ratio.

Returns
float

getMinZoomRatio

public abstract float getMinZoomRatio ()

Returns the minimum zoom ratio.

Returns
float

getZoomRatio

public abstract float getZoomRatio ()

Returns the zoom ratio.

Returns
float