StillCaptureFlow

public class 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

@NonNull boolean
shouldStopRepeatingBeforeCapture(
    @NonNull List<@NonNull CaptureRequest> captureRequests,
    @NonNull boolean isStillCapture
)

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

Public constructors

StillCaptureFlow

public StillCaptureFlow()

Public methods

shouldStopRepeatingBeforeCapture

@NonNull
public boolean shouldStopRepeatingBeforeCapture(
    @NonNull List<@NonNull CaptureRequest> captureRequests,
    @NonNull boolean isStillCapture
)

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

Parameters
@NonNull List<@NonNull CaptureRequest> captureRequests

captureRequests to be executed

@NonNull boolean isStillCapture

true if captureRequests contain a still capture request.

Returns
boolean