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

SurfaceRequest.RequestCancelledException

public static final class SurfaceRequest.RequestCancelledException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ androidx.camera.core.SurfaceRequest.RequestCancelledException


An exception used to signal that the camera has cancelled a request for a Surface.

This may be set on the ListenableFuture returned by {@link SurfaceRequest#setSurface(Surface) when the camera is shutting down or when the surface resolution requirements have changed in order to accommodate newly bound use cases, in which case the {@link Runnable Runnables} provided to {will also be invoked on their respective {@link Executor Executors}.

Summary

Inherited methods