ImageReaderSurfaceHolder


@ExperimentalApi
class ImageReaderSurfaceHolder : SurfaceHolder, AutoCloseable


An implementation of SurfaceHolder which is backed by an ImageReader.

Summary

Public constructors

Public functions

Unit
Unit
Unit

Drains the ImageReader so more frames can be queued to the Surface.

Surface!
Rect!
Boolean
Canvas!
Canvas!
lockCanvas(dirty: Rect!)
Unit
Unit
setFixedSize(width: Int, height: Int)
Unit
setFormat(format: Int)
Unit
Unit
Unit
setType(type: Int)

This function is deprecated.

Unit

Public properties

ImageReader?

Inherited Constants

From android.view.SurfaceHolder
const Int

This property is deprecated.

const Int

This property is deprecated.

const Int

This property is deprecated.

const Int

This property is deprecated.

Public constructors

ImageReaderSurfaceHolder

ImageReaderSurfaceHolder(handler: Handler!)

Public functions

addCallback

fun addCallback(callback: SurfaceHolder.Callback!): Unit

close

fun close(): Unit

drainSurface

fun drainSurface(): Unit

Drains the ImageReader so more frames can be queued to the Surface.

getSurface

fun getSurface(): Surface!

getSurfaceFrame

fun getSurfaceFrame(): Rect!

isCreating

fun isCreating(): Boolean

lockCanvas

fun lockCanvas(): Canvas!

lockCanvas

fun lockCanvas(dirty: Rect!): Canvas!

removeCallback

fun removeCallback(callback: SurfaceHolder.Callback!): Unit

setFixedSize

fun setFixedSize(width: Int, height: Int): Unit

setFormat

fun setFormat(format: Int): Unit

setKeepScreenOn

fun setKeepScreenOn(screenOn: Boolean): Unit

setSizeFromLayout

fun setSizeFromLayout(): Unit

setType

fun setType(type: Int): Unit

unlockCanvasAndPost

fun unlockCanvasAndPost(canvas: Canvas!): Unit

Public properties

imageReader

val imageReaderImageReader?