Interface DeviceProperties
-
- All Implemented Interfaces:
public interface DevicePropertiesProperties about this device.
-
-
Method Summary
Modifier and Type Method Description abstract LocalegetLocale()the locale of the device. abstract StringgetLanguage()the language of the device. abstract StringgetCountry()the country of the device. abstract FloatgetDisplayMetricsDensity()the logical density of the display. abstract IntegergetScreenWidth()the absolute width of the available display size in dp. abstract IntegergetScreenHeight()the absolute height of the available display size in dp. abstract IntegergetScreenWidthInPixels()the absolute width of the available display size in pixels. abstract IntegergetScreenHeightInPixels()the absolute height of the available display size in pixels. abstract IntegergetRealScreenWidth()the physical width of the device screen in dp. abstract IntegergetRealScreenHeight()the physical height of the device screen in dp. abstract IntegergetRealScreenWidthInPixels()the physical width of the device screen in pixels. abstract IntegergetRealScreenHeightInPixels()the physical height of the device screen in pixels. abstract NetworkTypegetNetworkType()the network type of the device. abstract StringgetNetworkCarrierName()the alphabetic name of current registered network operator. abstract LocationgetLocation()the location of the device. abstract StringgetManufacturer()the manufacturer of the device. abstract StringgetDeviceModel()the model of the device. abstract StringgetOsVersion()the os version of the device. abstract BooleanisEmulator()indicates that the application is running in an emulator. abstract BooleanisDeviceRooted()indicates that the device is rooted or not. -
-
Method Detail
-
getLanguage
abstract String getLanguage()
the language of the device.
-
getCountry
abstract String getCountry()
the country of the device.
-
getDisplayMetricsDensity
abstract Float getDisplayMetricsDensity()
the logical density of the display.
-
getScreenWidth
abstract Integer getScreenWidth()
the absolute width of the available display size in dp.
-
getScreenHeight
abstract Integer getScreenHeight()
the absolute height of the available display size in dp.
-
getScreenWidthInPixels
abstract Integer getScreenWidthInPixels()
the absolute width of the available display size in pixels.
-
getScreenHeightInPixels
abstract Integer getScreenHeightInPixels()
the absolute height of the available display size in pixels.
-
getRealScreenWidth
abstract Integer getRealScreenWidth()
the physical width of the device screen in dp.
-
getRealScreenHeight
abstract Integer getRealScreenHeight()
the physical height of the device screen in dp.
-
getRealScreenWidthInPixels
abstract Integer getRealScreenWidthInPixels()
the physical width of the device screen in pixels.
-
getRealScreenHeightInPixels
abstract Integer getRealScreenHeightInPixels()
the physical height of the device screen in pixels.
-
getNetworkType
abstract NetworkType getNetworkType()
the network type of the device.
-
getNetworkCarrierName
abstract String getNetworkCarrierName()
the alphabetic name of current registered network operator.
-
getLocation
abstract Location getLocation()
the location of the device.
-
getManufacturer
abstract String getManufacturer()
the manufacturer of the device.
-
getDeviceModel
abstract String getDeviceModel()
the model of the device.
-
getOsVersion
abstract String getOsVersion()
the os version of the device.
-
isEmulator
abstract Boolean isEmulator()
indicates that the application is running in an emulator.
-
isDeviceRooted
abstract Boolean isDeviceRooted()
indicates that the device is rooted or not.
-
-
-
-