setAppInBackground method

void setAppInBackground(
  1. bool background
)

The app went to the background (true) or came back (false). In the background no connection attempts are made; back in the foreground the next one starts at once. An open connection is not touched.

Implementation

void setAppInBackground(bool background) {
  if (_disposed) return;
  try {
    _transport.setBackground(background);
  } catch (_) {}
}