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):2024-07-29。
[null,null,["最后更新时间 (UTC):2024-07-29。"],[[["This documentation details the different types of events that can be triggered, ranging from hardware (USB, audio, network) to software (app installations, launches, crashes)."],["Events 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."],["Each event type has a unique identifier (enum) for programmatic use, like `AUDIO_SEVERE_UNDERRUN` or `NETWORK_STATE_CHANGE`."],["Some events provide detailed information about the trigger, such as the duration of an audio underrun or the new state of a network connection."],["Developers can utilize these event types to monitor and respond to various system and application states within their code."]]],[]]