public final class

CameraProviderInitRetryPolicy.Legacy

extends java.lang.Object

implements RetryPolicyInternal

 java.lang.Object

↳androidx.camera.core.impl.CameraProviderInitRetryPolicy.Legacy

Overview

A legacy implementation of CameraProviderInitRetryPolicy that treats CameraValidator.CameraIdListIncorrectException as a special case.

In older versions of the CameraProviderInitRetryPolicy, there's a special rule for handling CameraValidator.CameraIdListIncorrectException errors if:

  • The camera initialization task takes longer than the allowed timeout.
  • The error is CameraValidator.CameraIdListIncorrectException.
  • There's more than one camera available.
Then:
  • The task is considered complete and won't be retried.

Summary

Constructors
publicLegacy(long timeoutInMillis)

Methods
public RetryPolicycopy(long timeoutInMillis)

public longgetTimeoutInMillis()

public RetryPolicy.RetryConfigonRetryDecisionRequested(RetryPolicy.ExecutionState executionState)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Legacy(long timeoutInMillis)

Methods

public RetryPolicy.RetryConfig onRetryDecisionRequested(RetryPolicy.ExecutionState executionState)

public long getTimeoutInMillis()

public RetryPolicy copy(long timeoutInMillis)