UsageEventsQuery.GetEventTypes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.