ViewfinderSurfaceSessionScope


interface ViewfinderSurfaceSessionScope : CoroutineScope


A coroutine variant of a ViewfinderSurfaceSession.

The scope will generally be active for as long as the surface needs to be written into, so surface should not be used outside of this scope.

Summary

Public properties

ViewfinderSurfaceRequest

The ViewfinderSurfaceRequest responsible for this session.

Surface

The android.view.Surface available for this session.

Public properties

request

Added in 1.5.0-beta01
val requestViewfinderSurfaceRequest

The ViewfinderSurfaceRequest responsible for this session.

surface

Added in 1.5.0-beta01
val surfaceSurface

The android.view.Surface available for this session. Users of this surface should not call Surface.release. It will automatically be closed at some time after this scope has exited.