EventType
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
różne możliwe typy zdarzeń;
Wartości w polu enum |
EVENT_TYPE_UNSPECIFIED |
Nieznany typ zdarzenia. |
AUDIO_SEVERE_UNDERRUN |
Wywoływane, gdy urządzeniu audio nie ma danych buforowych na ponad 5 sekund. |
NETWORK_STATE_CHANGE |
Wywoływane natychmiast po każdej zmianie połączenia sieciowego. |
USB_ADDED |
Wywoływane po dodaniu urządzeń USB. |
USB_REMOVED |
Wywoływane po wyjęciu urządzeń USB. |
NETWORK_HTTPS_LATENCY_CHANGE |
Wywoływane po wykryciu nowego problemu z opóźnieniem HTTPS lub powrocie urządzenia z powodu istniejącego problemu z opóźnieniem HTTPS. |
WIFI_SIGNAL_STRENGTH_LOW |
Wywoływane, gdy siła sygnału sieci Wi-Fi spadnie poniżej –70 dBm. |
WIFI_SIGNAL_STRENGTH_RECOVERED |
Wywoływane po odzyskaniu siły sygnału połączonej sieci Wi-Fi po utracie sygnału. |
VPN_CONNECTION_STATE_CHANGE |
Wywoływane przy zmianach połączeń VPN. |
APP_INSTALLED |
Wywoływane po zainstalowaniu aplikacji. |
APP_UNINSTALLED |
Wywoływane po odinstalowaniu aplikacji. |
APP_LAUNCHED |
Wywoływane podczas uruchamiania aplikacji. |
OS_CRASH |
Wywoływane po wystąpieniu awarii. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]