LifecycleAware

interface LifecycleAware

Inheritors

Functions

Link copied to clipboard
abstract fun onCreate(bundle: Bundle?)

Callback method which should be called when the parent lifecycle aware component is being created.

Link copied to clipboard
abstract fun onDestroy()

Callback method which should be called when the parent lifecycle aware component is being destroyed.

Link copied to clipboard
abstract fun onPause()

Callback method which should be called when the parent lifecycle aware component enters its paused state.

Link copied to clipboard
abstract fun onResume()

Callback method which should be called when the parent lifecycle aware component enters its resumed state.

Link copied to clipboard
abstract fun onSaveInstanceState(bundle: Bundle)

Callback which should be called when the parent lifecycle aware component saves its instance state. Note the bundle which must be handled explicitly during saving.

Link copied to clipboard
abstract fun onStart()

Callback method which should be called when the parent lifecycle aware component enters its started state.

Link copied to clipboard
abstract fun onStop()

Callback method which should be called when the parent lifecycle aware component enters its stopped state.