ApplicationEvents constructor

ApplicationEvents({
  1. bool? backgrounding,
  2. bool? networkAvailability,
})

Setting backgrounding to true allows the SDK to detect and react to the application entering the background or foreground. The default value is true.

Setting networkAvailability to true allows the SDK to detect and react to network connectivity changes. For instance the SDK may not try to send events if it detects the network is not available. The default value is true.

Implementation

ApplicationEvents({bool? backgrounding, bool? networkAvailability})
    : backgrounding = backgrounding ??
          FlutterDefaultConfig.applicationEventsConfig.defaultBackgrounding,
      networkAvailability = networkAvailability ??
          FlutterDefaultConfig
              .applicationEventsConfig.defaultNetworkAvailability;