Dil

AppUsageDurationQuery.Builder.SetIntervalType(UsageStatsInterval) Method

Definition

Sets the time interval by which the stats are aggregated.

[Android.Runtime.Register("setIntervalType", "(I)Landroid/app/usage/AppUsageDurationQuery$Builder;", "", ApiSince=37)]
public Android.App.Usage.AppUsageDurationQuery.Builder SetIntervalType(Android.App.Usage.UsageStatsInterval intervalType);
[<Android.Runtime.Register("setIntervalType", "(I)Landroid/app/usage/AppUsageDurationQuery$Builder;", "", ApiSince=37)>]
member this.SetIntervalType : Android.App.Usage.UsageStatsInterval -> Android.App.Usage.AppUsageDurationQuery.Builder

Parameters

intervalType
UsageStatsInterval

time interval by which the stats are aggregated. Value is one of the following: UsageStatsManager.INTERVAL_DAILY; UsageStatsManager.INTERVAL_WEEKLY; UsageStatsManager.INTERVAL_MONTHLY; UsageStatsManager.INTERVAL_YEARLY

Returns

this Builder object. This value cannot be null.

Attributes

Remarks

Sets the time interval by which the stats are aggregated.

Android reference for android.app.usage.AppUsageDurationQuery.Builder.setIntervalType.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to