UsageEventsQuery.GetEventTypes Method

Definition

Retrieves the usage event types for the query.

[Android.Runtime.Register("getEventTypes", "()[I", "", ApiSince=35)]
public int[] GetEventTypes ();
[<Android.Runtime.Register("getEventTypes", "()[I", "", ApiSince=35)>]
member this.GetEventTypes : unit -> int[]

Returns

Int32[]

an array contains the usage event types that was previously set using Builder#setEventTypes(int...) or an empty array if no value has been set.

Attributes

Remarks

Retrieves the usage event types for the query.

Note that an empty array indicates querying all usage event types, and it may cause additional system overhead when calling UsageStatsManager#queryEvents(UsageEventsQuery). Apps are encouraged to provide a list of event types via Builder#setEventTypes(int...)

Java documentation for android.app.usage.UsageEventsQuery.getEventTypes().

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