TdLifecycle constructor
Starts observing the app lifecycle for runtime.
Implementation
TdLifecycle(
this.runtime, {
this.closeOnExit = true,
this.manageOnlineStatus = true,
}) {
_listener = AppLifecycleListener(
onResume: _onResume,
onHide: _onHide,
onExitRequested: _onExitRequested,
);
}