setPreviewTexture

open fun setPreviewTexture(texture: SurfaceTexture)

set preview surface with SurfaceTexture.this method require API >= 14

Parameters

texture