ViewAPI.getCanvasWidth

 

long getCanvasWidth()

This method returns the current width of the view's canvas (drawing area) in pixels.