# PreviewCallback

class PreviewCallback(onCreated: (surface: Surface, width: Int, height: Int) -> Unit, onChanged: (width: Int, height: Int) -> Unit, onDestroyed: () -> Unit)

## Constructors

PreviewCallback
Link copied to clipboard
constructor(onCreated: (surface: Surface, width: Int, height: Int) -> Unit, onChanged: (width: Int, height: Int) -> Unit, onDestroyed: () -> Unit)

## Functions

removeCallbacks
Link copied to clipboard
fun removeCallbacks()
setSurfaceView
Link copied to clipboard
fun setSurfaceView(surfaceView: SurfaceView)
setTextureView
Link copied to clipboard
fun setTextureView(textureView: TextureView)