canMonitorAppUsage static method

dynamic canMonitorAppUsage()

Check if the app can monitor data

Implementation

static canMonitorAppUsage() {
  if (!Nylo.instance.shouldMonitorAppUsage()) {
    throw Exception("""\n
    You need to enable app usage monitoring in your Nylo instance.
    Go to your app_provider.dart file and add the following line:
    boot(Nylo nylo) async {
    ...
    nylo.monitorAppUsage(); // add this
    """);
  }
}