Extension - Activity Lifecycle of an app (onPause → onStop → onResume)

The question is, is it even possible to create such an app here? If not, it is possible with other similar programs such as Kodular etc.