# RenderingContext Canvas.getContext(string contextType)

Start from base library version 2.7.0. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Support

This method returns Canvas Drawing context

# parameter

# string contextType

# Return value

# RenderingContext

Support acquisition 2D and WebGL Drawing context