setOnPaintListener

Remove existing listeners and replace with provided listener.

Parameters

listener

Code that gets executed after a frame was rendered.