设备信息模块

API

DataStructure

ESDeviceInfo

设备信息

NameDescriptionTypeDefault
ethMac有线网络MAC地址string-
wifiMac无线网络MAC地址string-
ipAddress网络IP地址string-
totalMemory设备总内存number-
availableMemory设备可用内存number-
screenWidth屏幕宽度number-
screenHeight屏幕高度number-
resolution屏幕分辨率string-
density屏幕像素密度number-
densityDpi屏幕物理密度number-
scaledDensity屏幕字体缩放比例number-
buildModelbuildModelstring-
buildBrandbuildBrandstring-
buildBoardbuildBoardstring-
buildDevicebuildDevicestring-
buildProductbuildProductstring-
buildHardwarebuildHardwarestring-
buildManufacturerbuildManufacturerstring-
buildSerialbuildSerialstring-
buildTagsbuildTagsstring-
buildIdbuildIdstring-
buildTimebuildTimenumber-
buildTypebuildTypestring-
buildUserbuildUserstring-
buildBootloaderbuildBootloaderstring-
buildDisplaybuildDisplaystring-
buildFingerPrintbuildFingerPrintstring-
buildVersionReleasebuildVersionReleasestring-
buildVersionIncrementalbuildVersionIncrementalstring-
buildVersionBaseOSbuildVersionBaseOSstring-
buildVersionCodeNamebuildVersionCodeNamestring-
buildVersionSecurityPatchbuildVersionSecurityPatchstring-
buildVersionPreviewSDKIntbuildVersionPreviewSDKIntnumber-
buildVersionSDKIntbuildVersionSDKIntnumber-

Exposes

NameDescriptionType
getDevice该方法用于获取安卓设备信息Function
getScreenWidth该方法用于获取安卓设备的屏幕宽度Function
getScreenHeight该方法用于获取安卓设备的屏幕高度Function
getAndroidAPILevel该方法用于获取安卓设备的API LevelFunction
getDeviceEthMac该方法用于获取安卓设备有线MAC地址Function
getDeviceWifiMac该方法用于获取安卓设备无线MAC地址Function
getDeviceTotalMemory该方法用于获取安卓设备总内存Function
getDeviceAvailMemory该方法用于获取安卓设备可用内存Function
getScreenWidth该方法用于获取安卓设备屏幕宽度Function
getScreenHeight该方法用于获取安卓设备屏幕高度Function
getResolution该方法用于获取安卓设备屏幕分辨率Function
getDensity该方法用于获取安卓设备屏幕像素密度Function
getDensityDpi该方法用于获取安卓设备屏幕物理密度Function
getScaledDensity该方法用于获取安卓设备屏幕字体缩放比例Function
getIPAddress该方法用于获取安卓设备IP地址Function
getBuildModel该方法用于获取安卓设备BuildModelFunction
getBuildBrand该方法用于获取安卓设备BuildBrandFunction
getBuildBoard该方法用于获取安卓设备BuildBoardFunction
getBuildDevice该方法用于获取安卓设备BuildDeviceFunction
getBuildProduct该方法用于获取安卓设备BuildProductFunction
getBuildHardware该方法用于获取安卓设备BuildHardwareFunction
getBuildManufacturer该方法用于获取安卓设备BuildManufacturerFunction
getBuildSerial该方法用于获取安卓设备BuildSerialFunction
getBuildTags该方法用于获取安卓设备BuildTagsFunction
getBuildId该方法用于获取安卓设备BuildIdFunction
getBuildTime该方法用于获取安卓设备BuildTimeFunction
getBuildType该方法用于获取安卓设备BuildTypeFunction
getBuildUser该方法用于获取安卓设备BuildUserFunction
getBuildBootloader该方法用于获取安卓设备BuildBootloaderFunction
getBuildDisplay该方法用于获取安卓设备BuildDisplayFunction
getBuildFingerPrint该方法用于获取安卓设备BuildFingerPrintFunction
getBuildVersionIncremental该方法用于获取安卓设备BuildVersionIncrementalFunction
getBuildVersionBaseOS该方法用于获取安卓设备BuildVersionBaseOSFunction
getBuildVersionCodeName该方法用于获取安卓设备BuildVersionCodeNameFunction
getBuildVersionSecurityPatch该方法用于获取安卓设备BuildVersionSecurityPatchFunction
getBuildVersionPreviewSDKInt该方法用于获取安卓设备BuildVersionPreviewSDKIntFunction
getBuildVersionSDKInt该方法用于获取安卓设备BuildVersionSDKIntFunction
getBuildVersionRelease该方法用于获取安卓设备BuildVersionReleaseFunction