setSurface

fun setSurface(surface: Surface)

Deprecated

This low-level method can cause crashes and will be removed. Prefer using higher-level APIs.

Sets the drawing surface for the renderer.