Android.App.Usage.UsageStatsManager.QueryUsageStats Method
Gets application usage stats for the given time range, aggregated by the specified interval.

Syntax

[Android.Runtime.Register("queryUsageStats", "(IJJ)Ljava/util/List;", "")]
public IList<UsageStats> QueryUsageStats ([Android.Runtime.GeneratedEnum] UsageStatsInterval intervalType, long beginTime, long endTime)

Parameters

intervalType
The time interval by which the stats are aggregated.
beginTime
The inclusive beginning of the range of stats to include in the results.
endTime
The exclusive end of the range of stats to include in the results.

Returns

Documentation for this section has not yet been entered.

Remarks

Gets application usage stats for the given time range, aggregated by the specified interval.

The returned list will contain a Android.App.Usage.UsageStats object for each package that has data for an interval that is a subset of the time range given. To illustrate:

[Android Documentation]

Requirements

Namespace: Android.App.Usage
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0