onBeforeDraw

protected open fun onBeforeDraw(timestampMs: Long)

Override this function to be notified when the ui element is about to be drawn

In this function you should update your UI element for the coming draw and define its transformations

Parameters

timestampMs

the timestamp on the frame in milliseconds