public static final class SurfaceRequest.RequestCancelledException
extends RuntimeException

   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException

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}.


Inherited methods