# number Canvas.requestAnimationFrame(function callback)
Start from base library version 2.7.0. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Support
Executes on the next redraw. Support in 2D Canvas and WebGL Canvas Under use, But does not support mixing 2D and WebGL The method.
# parameter
# function callback
Implemented callback
# Return value
# number
request ID