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 падает ниже -70 дБм. |
WIFI_SIGNAL_STRENGTH_RECOVERED | Срабатывает, когда уровень сигнала подключенной сети Wi-Fi восстанавливается после падения сигнала. |
VPN_CONNECTION_STATE_CHANGE | Срабатывает при изменении VPN-подключений. |
APP_INSTALLED | Срабатывает при установке приложения. |
APP_UNINSTALLED | Срабатывает при удалении приложения. |
APP_LAUNCHED | Срабатывает при запуске приложения. |
OS_CRASH | Срабатывает при возникновении сбоя. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 UTC."],[[["\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. |"]]