Lifecycle methods are set of methods which get executed when application enters into a specific state. Following are such methods:
OnStart
: Executes when application starts from the beginningOnSleep
: Executes each time when application goes into the backgroundOnResume
: Executes when application comes into the foreground from the Sleeping state