AndroidDeviceInfo class

Information derived from android.os.Build.

See: https://developer.android.com/reference/android/os/Build.html

Inheritance

Properties

availableRamSize int
Current unallocated RAM size of the device in megabytes
final
board String
The name of the underlying board, like "goldfish". https://developer.android.com/reference/android/os/Build#BOARD
final
bootloader String
The system bootloader version number. https://developer.android.com/reference/android/os/Build#BOOTLOADER
final
brand String
The consumer-visible brand with which the product/hardware will be associated, if any. https://developer.android.com/reference/android/os/Build#BRAND
final
data Map<String, dynamic>
Device information data Warning: The returned Map may not be JSON-encodable.
finalinherited
device String
The name of the industrial design. https://developer.android.com/reference/android/os/Build#DEVICE
final
display String
A build ID string meant for displaying to the user. https://developer.android.com/reference/android/os/Build#DISPLAY
final
fingerprint String
A string that uniquely identifies this build. https://developer.android.com/reference/android/os/Build#FINGERPRINT
final
hardware String
The name of the hardware (from the kernel command line or /proc). https://developer.android.com/reference/android/os/Build#HARDWARE
final
hashCode int
The hash code for this object.
no setterinherited
host String
Hostname. https://developer.android.com/reference/android/os/Build#HOST
final
id String
Either a changelist number, or a label like "M4-rc20". https://developer.android.com/reference/android/os/Build#ID
final
isLowRamDevice bool
true if the application is running on a low-RAM device, false otherwise.
final
isPhysicalDevice bool
false if the application is running in an emulator, true otherwise.
final
manufacturer String
The manufacturer of the product/hardware. https://developer.android.com/reference/android/os/Build#MANUFACTURER
final
model String
The end-user-visible name for the end product. https://developer.android.com/reference/android/os/Build#MODEL
final
name String
The name of the device. https://developer.android.com/reference/android/provider/Settings.Global#DEVICE_NAME
final
physicalRamSize int
Total physical RAM size of the device in megabytes
final
product String
The name of the overall product. https://developer.android.com/reference/android/os/Build#PRODUCT
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serialNumber String
Hardware serial number of the device, if available
final
supported32BitAbis List<String>
An ordered list of 32 bit ABIs supported by this device. Available only on Android L (API 21) and newer https://developer.android.com/reference/android/os/Build#SUPPORTED_32_BIT_ABIS
final
supported64BitAbis List<String>
An ordered list of 64 bit ABIs supported by this device. Available only on Android L (API 21) and newer https://developer.android.com/reference/android/os/Build#SUPPORTED_64_BIT_ABIS
final
supportedAbis List<String>
An ordered list of ABIs supported by this device. Available only on Android L (API 21) and newer https://developer.android.com/reference/android/os/Build#SUPPORTED_ABIS
final
systemFeatures List<String>
Describes what features are available on the current device.
final
tags String
Comma-separated tags describing the build, like "unsigned,debug". https://developer.android.com/reference/android/os/Build#TAGS
final
type String
The type of build, like "user" or "eng". https://developer.android.com/reference/android/os/Build#TYPE
final
version AndroidBuildVersion
Android operating system version values derived from android.os.Build.VERSION.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
For legacy purposes
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromMap(Map<String, dynamic> map) AndroidDeviceInfo
Deserializes from the message received from _kChannel.
setMockInitialValues({required AndroidBuildVersion version, required String board, required String bootloader, required String brand, required String device, required String display, required String fingerprint, required String hardware, required String host, required String id, required String manufacturer, required String model, required String product, required String name, required List<String> supported32BitAbis, required List<String> supported64BitAbis, required List<String> supportedAbis, required String tags, required String type, required bool isPhysicalDevice, required List<String> systemFeatures, required String serialNumber, required bool isLowRamDevice, required int physicalRamSize, required int availableRamSize}) AndroidDeviceInfo
Initializes the application metadata with mock values for testing.