I am using invalidate() in my onDraw to get a loading view but it is not starting the onDraw call.
public void onDraw(Component component, Canvas canvas) {
<function body>
invalidate()
}
I am using invalidate() in my onDraw to get a loading view but it is not starting the onDraw call.
public void onDraw(Component component, Canvas canvas) {
<function body>
invalidate()
}
context.getUITaskDispatcher().asyncDispatch(this::invalidate);
This personally worked for me when i was trying to call the onDraw() method continuously for displaying an animation.