onPause method

void onPause()

A callback when the application is not currently visible to the user, not responding to user input, and running in the background.

Implementation

void onPause() {}