The second Android 11 Developer Preview is now available, test it out and share your feedback.

ImmutableZoomState

abstract class ImmutableZoomState : ZoomState
kotlin.Any
   ↳ androidx.camera.core.internal.ImmutableZoomState

An implementation of ZoomState that is immutable.

Summary

Public constructors

An implementation of ZoomState that is immutable.

Public methods

open static ZoomState
create(zoomRatio: Float, maxZoomRatio: Float, minZoomRatio: Float, linearZoom: Float)

Create an immutable instance of ZoomState.

open static ZoomState
create(@NonNull zoomState: ZoomState)

Create an immutable instance of ZoomState.

abstract Float

abstract Float

abstract Float

abstract Float

Public constructors

<init>

ImmutableZoomState()

An implementation of ZoomState that is immutable.

Public methods

create

@NonNull open static fun create(
    zoomRatio: Float,
    maxZoomRatio: Float,
    minZoomRatio: Float,
    linearZoom: Float
): ZoomState

Create an immutable instance of ZoomState.

create

@NonNull open static fun create(@NonNull zoomState: ZoomState): ZoomState

Create an immutable instance of ZoomState.

getLinearZoom

abstract fun getLinearZoom(): Float

getMaxZoomRatio

abstract fun getMaxZoomRatio(): Float

getMinZoomRatio

abstract fun getMinZoomRatio(): Float

getZoomRatio

abstract fun getZoomRatio(): Float