PreviewBuffer

interface PreviewBuffer

Manages access to preview buffer of the Camera

Functions

Link copied to clipboard
abstract fun addFrameHandler(frameHandler: FrameHandler)

Registers FrameHandler which will receive preview frames from camera.

Link copied to clipboard
abstract fun <T : FrameHandler> getAttachedFrameHandler(clazz: Class<T>): T?

Check whether there is same class of FrameHandler attached to the view return object of the same class if exists otherwise null

Link copied to clipboard
abstract fun removeFrameHandler(frameHandler: FrameHandler)

Unregisters FrameHandler.