StillCaptureFlow

@RequiresApi(21) open class StillCaptureFlow
kotlin.Any
   ↳ androidx.camera.camera2.internal.compat.workaround.StillCaptureFlow

Workaround to fix device issues such as calling stopRepeating ahead of still capture on some devices when flash is on or auto. See b/172036589.

Summary

Public constructors

Public methods
open Boolean
shouldStopRepeatingBeforeCapture(@NonNull captureRequests: MutableList<CaptureRequest!>, isStillCapture: Boolean)

Returns whether or not it should call stopRepeating ahead of capture request.

Public constructors

StillCaptureFlow

StillCaptureFlow()

Public methods

shouldStopRepeatingBeforeCapture

open fun shouldStopRepeatingBeforeCapture(
    @NonNull captureRequests: MutableList<CaptureRequest!>,
    isStillCapture: Boolean
): Boolean

Returns whether or not it should call stopRepeating ahead of capture request.

Parameters
captureRequests MutableList<CaptureRequest!>: captureRequests to be executed
isStillCapture Boolean: true if captureRequests contain a still capture request.
Return
Boolean