DeviceInfo
Facts about the device at the moment of Device.info: identity, display geometry and rotation, screen, keyguard and keyboard state, the package owning the focused window and the device conditions (Device.setAnimations and the rest). Serialized as JSON.
Constructors
Properties
Airplane mode is on.
Window, transition or animator animations run (any of the three scales is not 0).
Auto-rotate is on: the sensor turns the display (off while a rotation is frozen).
Color inversion is on; null when Android does not let Tap read it.
The package owning the focused window, when there is one.
The display density apps see, in dpi.
High-contrast text is on; null when Android does not let Tap read it.
A soft keyboard (any input method's window) is on screen.
The keyguard (lock screen) is showing.
A PIN, pattern or password is set: Tap cannot dismiss this keyguard.
Mobile data is switched on; false on a device without telephony.
PORTRAIT when the display is at least as tall as it is wide.
The screen stays on while plugged in (Device.setStayAwake).
The device's languages, BCP-47 tags in preference order (Device.setSystemLocales).
Wi-Fi is switched on (also while airplane mode is on); says nothing about a connection.