The Canvas class extends the Displayable class. It provides various methods to handle game actions, key events, and pointer events. Developers use this class to develop game applications. Some of the methods of this class are as follows:
- showNotify()
- hideNotify()
- keyPressed()
- keyReleased()