Layer.callOnPaint

Function/Meaning
Whether to call the onPaint event
Type
Layer class property (read/write)
Description
Indicates whether to call the Layer.onPaint event. You can also set this value.
If set to true, the onPaint event will be called immediately before the next screen draw. Once the onPaint event has finished processing, this property is automatically reset to false.
The onPaint event will not occur while this is set to false.
The Layer.update method sets this property to true.