view

var view: View?

The view to render. This filter never measures or layouts the view so you must do it before set it here, in other case nothing is rendered. Example using the encoder resolution to render the view in fullscreen:

val widthSpec = View.MeasureSpec.makeMeasureSpec(width, View.MeasureSpec.EXACTLY) val heightSpec = View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.EXACTLY) view.measure(widthSpec, heightSpec) view.layout(0, 0, width, height)