UDevice class abstract final

Engine behind the device part of UApp; use UApp instead.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

brand → String
Same as UApp.deviceBrand.
no setter
cpuCores → int?
Same as UApp.cpuCores.
no setter
headers → Map<String, String>
Headers that identify the client to your API.
no setter
id → String
A stable identifier for this install of the app on this device:
no setter
info → UDeviceInfo
Same as UApp.deviceInfo.
no setter
is24HourFormat → bool?
Same as UApp.is24HourFormat.
no setter
isDesktop → bool
Same as UApp.isDesktopDevice.
no setter
isEmulator → bool
Same as UApp.isEmulator.
no setter
isPhone → bool
Same as UApp.isPhoneDevice.
no setter
isPhysical → bool
Same as UApp.isPhysicalDevice.
no setter
isReady → bool
Same as UApp.isDeviceInfoReady.
no setter
isTablet → bool
Same as UApp.isTabletDevice.
no setter
isTv → bool
Same as UApp.isTvDevice.
no setter
locales → List<String>
Same as UApp.deviceLocales.
no setter
manufacturer → String
Same as UApp.deviceManufacturer.
no setter
model → String
Same as UApp.deviceModel.
no setter
name → String
Same as UApp.deviceName.
no setter
os → String
Same as UApp.osName.
no setter
osVersion → String
Same as UApp.osVersion.
no setter
sdkInt → int?
Same as UApp.sdkInt.
no setter
timeZone → String?
Same as UApp.timeZone.
no setter
totalMemory → int?
Same as UApp.totalMemory.
no setter
type → UDeviceType
Same as UApp.deviceType.
no setter
userAgent → String
"MyApp/1.4.0+12 (Android 14; SM-S918B)" for a User-Agent header.
no setter

Static Methods

batteryLevel() → Future<int?>
Same as UApp.batteryLevel.
init() → Future<void>
Loads device info with one native call. Idempotent; initU() calls it for you.
integrity({bool refresh = false}) → Future<UDeviceIntegrity>
Root / jailbreak / emulator / hook / debugger checks. Runs once off the UI thread and is cached unless refresh (a debugger can attach later).
keepScreenOn(bool on) → Future<bool>
Keeps the display from sleeping while on (video, navigation, scanners).
status() → Future<UDeviceStatus>
Battery, memory, disk and thermal state right now (not cached).