pause() Pauses the game activity if it’s not already paused. Declarationfunc pause() See AlsoUpdating the activity statestart()resume()end()