getAppUsage method

Future<String?> getAppUsage(
  1. int periodInDays
)

Method that allow's you to get the installed app's with the usage from the current device where the app is running.

Parameter that represent time in day's to collect the usage of app's from the customer device.

int period // represent time in day's

Implementation

Future<String?> getAppUsage(int periodInDays) {
  return ContextualProfilerPlatform.instance.getAppUsage(periodInDays);
}