| java.lang.Object | |
| ↳ | android.app.usage.UsageEvents.Event |
An event representing a state change for a component.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | CONFIGURATION_CHANGE | An event type denoting that the device configuration has changed. | |||||||||
| int | MOVE_TO_BACKGROUND | An event type denoting that a component moved to the background. | |||||||||
| int | MOVE_TO_FOREGROUND | An event type denoting that a component moved to the foreground. | |||||||||
| int | NONE | No event type. | |||||||||
| int | USER_INTERACTION | An event type denoting that a package was interacted with in some way by the user. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
The class name of the source of this event.
| |||||||||||
Returns a
Configuration for this event if the event is of type
CONFIGURATION_CHANGE, otherwise it returns null.
| |||||||||||
The event type.
| |||||||||||
The package name of the source of this event.
| |||||||||||
The time at which this event occurred, measured in milliseconds since the epoch.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
An event type denoting that the device configuration has changed.
An event type denoting that a component moved to the background.
An event type denoting that a component moved to the foreground.
An event type denoting that a package was interacted with in some way by the user.
The class name of the source of this event. This may be null for certain events.
Returns a Configuration for this event if the event is of type
CONFIGURATION_CHANGE, otherwise it returns null.
The event type.
See MOVE_TO_BACKGROUND
See MOVE_TO_FOREGROUND
The time at which this event occurred, measured in milliseconds since the epoch.
SeecurrentTimeMillis().