EventType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
EVENT_TYPE_UNSPECIFIED |
事件类型未知。 |
AUDIO_SEVERE_UNDERRUN |
当音频设备耗尽缓冲区数据的时间超过 5 秒时触发。 |
NETWORK_STATE_CHANGE |
在网络连接发生任何更改时立即触发。 |
USB_ADDED |
在添加 USB 设备时触发。 |
USB_REMOVED |
在移除 USB 设备时触发。 |
NETWORK_HTTPS_LATENCY_CHANGE |
当检测到新的 HTTPS 延迟问题或设备已从现有的 HTTPS 延迟问题恢复时触发。 |
WIFI_SIGNAL_STRENGTH_LOW |
当连接的 Wi-Fi 网络信号强度降至 -70dBm 以下时触发。 |
WIFI_SIGNAL_STRENGTH_RECOVERED |
当连接的 Wi-Fi 网络信号强度因信号下降而恢复时触发。 |
VPN_CONNECTION_STATE_CHANGE |
在 VPN 连接发生变化时触发。 |
APP_INSTALLED |
安装应用时触发。 |
APP_UNINSTALLED |
当应用被卸载时触发。 |
APP_LAUNCHED |
应用启动时触发。 |
OS_CRASH |
在发生崩溃时触发。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis documentation details the different types of events that can be triggered, ranging from hardware (USB, audio, network) to software (app installations, launches, crashes).\u003c/p\u003e\n"],["\u003cp\u003eEvents provide specific triggers, such as audio buffer underruns, network connection changes, USB device connections, HTTPS latency problems, WiFi signal strength fluctuations, VPN connection changes, app installations, and operating system crashes.\u003c/p\u003e\n"],["\u003cp\u003eEach event type has a unique identifier (enum) for programmatic use, like \u003ccode\u003eAUDIO_SEVERE_UNDERRUN\u003c/code\u003e or \u003ccode\u003eNETWORK_STATE_CHANGE\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSome events provide detailed information about the trigger, such as the duration of an audio underrun or the new state of a network connection.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize these event types to monitor and respond to various system and application states within their code.\u003c/p\u003e\n"]]],[],null,["# EventType\n\nThe different possible event types.\n\n| Enums ||\n|----------------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| `EVENT_TYPE_UNSPECIFIED` | Event type unknown. |\n| `AUDIO_SEVERE_UNDERRUN` | Triggered when a audio devices run out of buffer data for more than 5 seconds. |\n| `NETWORK_STATE_CHANGE` | Triggered immediately on any changes to a network connection. |\n| `USB_ADDED` | Triggered when USB devices are added. |\n| `USB_REMOVED` | Triggered when USB devices are removed. |\n| `NETWORK_HTTPS_LATENCY_CHANGE` | Triggered when a new HTTPS latency problem was detected or the device has recovered form an existing HTTPS latency problem. |\n| `WIFI_SIGNAL_STRENGTH_LOW` | Triggered when connected WiFi network signal strength drops below -70dBm. |\n| `WIFI_SIGNAL_STRENGTH_RECOVERED` | Triggered when connected WiFi network signal strength is recovered from a signal drop. |\n| `VPN_CONNECTION_STATE_CHANGE` | Triggered on changes to VPN connections. |\n| `APP_INSTALLED` | Triggered when an app is installed. |\n| `APP_UNINSTALLED` | Triggered when an app is uninstalled. |\n| `APP_LAUNCHED` | Triggered when an app is launched. |\n| `OS_CRASH` | Triggered when a crash occurs. |"]]