Dil

UsageEventsQuery.Builder.SetEventTypes(Int32[]) Method

Definition

Sets the list of usage event types to be included in the query.

[Android.Runtime.Register("setEventTypes", "([I)Landroid/app/usage/UsageEventsQuery$Builder;", "", ApiSince=35)]
public Android.App.Usage.UsageEventsQuery.Builder SetEventTypes(params int[] eventTypes);
[<Android.Runtime.Register("setEventTypes", "([I)Landroid/app/usage/UsageEventsQuery$Builder;", "", ApiSince=35)>]
member this.SetEventTypes : int[] -> Android.App.Usage.UsageEventsQuery.Builder

Parameters

eventTypes
Int32[]

the array of the usage event types. See UsageEvents.Event. This value cannot be null. Value is one of the following: UsageEvents.Event.NONE; UsageEvents.Event.ACTIVITY_RESUMED; UsageEvents.Event.ACTIVITY_PAUSED; UsageEvents.Event.CONFIGURATION_CHANGE; UsageEvents.Event.USER_INTERACTION; UsageEvents.Event.SHORTCUT_INVOCATION; UsageEvents.Event.STANDBY_BUCKET_CHANGED; UsageEvents.Event.SCREEN_INTERACTIVE; UsageEvents.Event.SCREEN_NON_INTERACTIVE; UsageEvents.Event.KEYGUARD_SHOWN; UsageEvents.Event.KEYGUARD_HIDDEN; UsageEvents.Event.FOREGROUND_SERVICE_START; UsageEvents.Event.FOREGROUND_SERVICE_STOP; UsageEvents.Event.ACTIVITY_STOPPED; UsageEvents.Event.DEVICE_SHUTDOWN; UsageEvents.Event.DEVICE_STARTUP

Returns

Attributes

Remarks

Sets the list of usage event types to be included in the query.

Android reference for android.app.usage.UsageEventsQuery.Builder.setEventTypes.

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