|
9 | 9 | { "name": "packageName", "type": "string", "doc": "Package name of the launched app." }, |
10 | 10 | { "name": "categoryName", "type": ["null", "string"], "doc": "App category as given by the play store, null if a category is not listed or unable to be fetched.", "default": null }, |
11 | 11 | { "name": "categoryNameFetchTime", "type": ["null", "double"], "doc": "Timestamp in UTC when the category was attempted to fetch from the play store (s), null if not fetched.", "default": null }, |
12 | | - { "name": "eventType", "type": { |
13 | | - "name": "UsageEventType", |
14 | | - "type": "enum", |
15 | | - "doc": "Android activity usage event type.", |
16 | | - "symbols": ["FOREGROUND", "BACKGROUND", "CONFIG", "SHORTCUT", "INTERACTION", "FOREGROUND_SERVICE_START", "FOREGROUND_SERVICE_STOP", "STANDBY_BUCKET_CHANGED", "STOPPED", "OTHER", "UNKNOWN"] |
17 | | - }, "doc": "Whether the event brought app to foreground or background or neither.", "default": "UNKNOWN" } |
| 12 | + { |
| 13 | + "name": "eventType", |
| 14 | + "type": { |
| 15 | + "name": "UsageEventType", |
| 16 | + "type": "enum", |
| 17 | + "doc": "Android activity and system usage event type. \nFOREGROUND: Activity moved to the foreground (onResume), app became visible and interactive to the user. \nBACKGROUND: Activity moved to the background (onPause), activity lost focus but may still be partially visible or resumable. \nSTOPPED: Activity became fully invisible (onStop), activity is no longer visible to the user. \nCONFIG: Configuration change (e.g., orientation or locale), activity may be recreated or resources updated. \nSHORTCUT: App launched via a launcher or pinned shortcut. \nINTERACTION: Direct user interaction with the app (tap, gesture, or other user action reported by the system). \nFOREGROUND_SERVICE_START: A foreground service was started by the package, long-running, user-visible work usually backed by a notification. \nFOREGROUND_SERVICE_STOP: A foreground service was stopped. \nSTANDBY_BUCKET_CHANGED: The system changed the app’s App Standby Bucket (ACTIVE, WORKING_SET, FREQUENT, RARE, RESTRICTED), affects background scheduling. \nKEYGUARD_SHOWN: The lock screen (keyguard) became visible, device entered locked UI. \nKEYGUARD_HIDDEN: The lock screen was dismissed or the device was unlocked, device became accessible. \nSCREEN_INTERACTIVE: Screen became interactive (turned on and ready for input), device ready for touch/input (may still be locked). \nSCREEN_NON_INTERACTIVE: Screen became non-interactive (turned off or in low-interaction mode), device not accepting input. \nOTHER: Any other unclassified event type; UNKNOWN: Fallback when the event type cannot be determined.", |
| 18 | + "symbols": [ |
| 19 | + "FOREGROUND", |
| 20 | + "BACKGROUND", |
| 21 | + "CONFIG", |
| 22 | + "SHORTCUT", |
| 23 | + "INTERACTION", |
| 24 | + "FOREGROUND_SERVICE_START", |
| 25 | + "FOREGROUND_SERVICE_STOP", |
| 26 | + "STANDBY_BUCKET_CHANGED", |
| 27 | + "STOPPED", |
| 28 | + "KEYGUARD_SHOWN", |
| 29 | + "KEYGUARD_HIDDEN", |
| 30 | + "SCREEN_INTERACTIVE", |
| 31 | + "SCREEN_NON_INTERACTIVE", |
| 32 | + "OTHER", |
| 33 | + "UNKNOWN" |
| 34 | + ] |
| 35 | + }, |
| 36 | + "doc": "Android app usage event types where an event represents a state change for component/app.", |
| 37 | + "default": "UNKNOWN" |
| 38 | + } |
18 | 39 | ] |
19 | 40 | } |
0 commit comments