ViewfinderSurfaceSession


interface ViewfinderSurfaceSession : AutoCloseable


A session of a Surface provided by a viewfinder.

The enclosed Surface is where pixels can be written by the client to be shown in the viewfinder that created this session. When the client no longer needs to write into the surface, the session must be closed with close. Failure to call close could potentially delay releasing significant resources.

Summary

Public properties

ViewfinderSurfaceRequest

The ViewfinderSurfaceRequest responsible for this session.

Surface

The android.view.Surface available for this session.

Inherited functions

From java.lang.AutoCloseable

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, and should close the session with close instead when the surface is no longer in use.