TdLifecycle constructor

TdLifecycle(
  1. TdRuntime runtime, {
  2. bool closeOnExit = true,
  3. bool manageOnlineStatus = true,
})

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,
  );
}