java.lang.Object | |
↳ | com.neomades.util.DeviceInfo |
Used for Runtime conditioning. Different than
TargetInfo
.
TargetInfo will condition the presence of a part of code, but
DeviceInfo
will condition the execution of code (code will be present
whatever the binary).
To use this class, the PHONE_STATE permission must be declared in the URS file.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ANDROID_10_0 | Android Q (10.0) | |||||||||
int | ANDROID_11_0 | Android 11.0 | |||||||||
int | ANDROID_2_2 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_2_3 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_2_3_3 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_3_0 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_3_1 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_3_2 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_4_0 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_4_1 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_4_2 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_4_3 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_4_4 | Android KitKat (4.4.X) | |||||||||
int | ANDROID_5_0 | Android Lollipop (5.0) | |||||||||
int | ANDROID_5_1 | Android Lollipop MR1 (5.1) | |||||||||
int | ANDROID_6_0 | Android M (6.0) | |||||||||
int | ANDROID_7_0 | Android N (7.0) | |||||||||
int | ANDROID_7_1 | Android N MR1 (7.1, 7.1.1) | |||||||||
int | ANDROID_8_0 | Android O (8.0) | |||||||||
int | ANDROID_8_1 | Android O MR1 (8.1) | |||||||||
int | ANDROID_9_0 | Android P (9.0) | |||||||||
int | ANDROID_API_LEVEL_10 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_API_LEVEL_11 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_API_LEVEL_12 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_API_LEVEL_13 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_API_LEVEL_14 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_API_LEVEL_15 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_API_LEVEL_16 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_API_LEVEL_17 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_API_LEVEL_18 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_API_LEVEL_19 | Android KitKat (4.4) | |||||||||
int | ANDROID_API_LEVEL_21 | Android Lollipop (5.0) | |||||||||
int | ANDROID_API_LEVEL_22 | Android Lollipop MR1 (5.1) | |||||||||
int | ANDROID_API_LEVEL_23 | Android M (6.0) | |||||||||
int | ANDROID_API_LEVEL_24 | Android N (7.0) | |||||||||
int | ANDROID_API_LEVEL_25 | Android N MR1 (7.1, 7.1.1) | |||||||||
int | ANDROID_API_LEVEL_26 | Android O (8.0) | |||||||||
int | ANDROID_API_LEVEL_27 | Android O MR1 (8.1) | |||||||||
int | ANDROID_API_LEVEL_28 | Android P (9.0) | |||||||||
int | ANDROID_API_LEVEL_29 | Android Q (10.0) | |||||||||
int | ANDROID_API_LEVEL_30 | Android 11.0 | |||||||||
int | ANDROID_API_LEVEL_8 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | ANDROID_API_LEVEL_9 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | IOS_10_0 | iOS Version 10.0 | |||||||||
int | IOS_10_1 | iOS Version 10.1 | |||||||||
int | IOS_10_2 | iOS Version 10.2 | |||||||||
int | IOS_10_3 | iOS Version 10.3 | |||||||||
int | IOS_11_0 | iOS Version 11.0 | |||||||||
int | IOS_11_1 | iOS Version 11.1 | |||||||||
int | IOS_11_2 | iOS Version 11.2 | |||||||||
int | IOS_11_3 | iOS Version 11.3 | |||||||||
int | IOS_11_4 | iOS Version 11.4 | |||||||||
int | IOS_12_0 | iOS Version 12.0 | |||||||||
int | IOS_12_1 | iOS Version 12.1 | |||||||||
int | IOS_12_2 | iOS Version 12.2 | |||||||||
int | IOS_12_3 | iOS Version 12.3 | |||||||||
int | IOS_12_4 | iOS Version 12.4 | |||||||||
int | IOS_13_0 | iOS Version 13.0 | |||||||||
int | IOS_13_1 | iOS Version 13.1 | |||||||||
int | IOS_13_2 | iOS Version 13.2 | |||||||||
int | IOS_13_3 | iOS Version 13.3 | |||||||||
int | IOS_13_4 | iOS Version 13.4 | |||||||||
int | IOS_13_5 | iOS Version 13.5 | |||||||||
int | IOS_13_6 | iOS Version 13.6 | |||||||||
int | IOS_14_0 | iOS Version 14.0 | |||||||||
int | IOS_14_1 | iOS Version 14.1 | |||||||||
int | IOS_14_2 | iOS Version 14.2 | |||||||||
int | IOS_14_3 | iOS Version 14.3 | |||||||||
int | IOS_15_0 | iOS Version 15.0 | |||||||||
int | IOS_16_0 | iOS Version 16.0 | |||||||||
int | IOS_17_0 | iOS Version 17.0 | |||||||||
int | IOS_18_0 | iOS Version 18.0 | |||||||||
int | IOS_19_0 | iOS Version 19.0 | |||||||||
int | IOS_20_0 | iOS Version 20.0 | |||||||||
int | IOS_7_0 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | IOS_7_1 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | IOS_8_0 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | IOS_8_1 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | IOS_8_2 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | IOS_8_3 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | IOS_8_4 | This constant is deprecated. Since NeoMAD 4.5. No replacement. | |||||||||
int | IOS_9_0 | iOS Version 9.0 | |||||||||
int | IOS_9_1 | iOS Version 9.1 | |||||||||
int | IOS_9_2 | iOS Version 9.2 | |||||||||
int | IOS_9_3 | iOS Version 9.3 |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static String | getBrand() | ||||||||||
static String |
getDeviceName()
Returns the name identifying the device.
| ||||||||||
static String |
getIdentifier()
Returns the single identifier of the device.
| ||||||||||
static String |
getModel()
Returns the device model name.
| ||||||||||
static int | getOSVersion() | ||||||||||
static String |
getWifiIpAddress()
Returns the Wifi interface IP address.
| ||||||||||
static boolean |
isIPad()
Return true if the current running device is an iPAD
| ||||||||||
static boolean |
isIPhone()
Return true if the current running device is an iPhone
| ||||||||||
static boolean |
isIPhoneXFamilly()
Returns true if the current device is an "iPhone X" family device (iPhone X,
iPhnoe 11, iPhone 12...).
| ||||||||||
static boolean |
isTablet()
Returns true if the current running device is a tablet.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Android Q (10.0)
Android 11.0
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
/** Android Froyo (2.2.X)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Gingerbread (2.3.X)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Gingerbread MR01
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Honeycomb (3.0.X)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Honeycomb MR01 (3.1.X)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Honeycomb MR02 (3.2.X)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Ice Cream Sandwich (4.0.X)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Jelly Bean (4.1.X)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Jelly Bean MR1 (4.2.X)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Jelly Bean MR2 (4.3.X)
Android KitKat (4.4.X)
Android Lollipop (5.0)
Android Lollipop MR1 (5.1)
Android M (6.0)
Android N (7.0)
Android N MR1 (7.1, 7.1.1)
Android O (8.0)
Android O MR1 (8.1)
Android P (9.0)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Gingerbread MR01
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Honeycomb (3.0.X)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Honeycomb MR01 (3.1.X)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Honeycomb MR02 (3.2.X)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Ice Cream Sandwich (4.0.X)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Ice Cream Sandwich (4.0.3, 4.0.4)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Jelly Bean (Android 4.1, 4.1.1)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Jelly Bean MR1 (4.2, 4.2.2)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Jelly Bean MR2 (4.3)
Android KitKat (4.4)
Android Lollipop (5.0)
Android Lollipop MR1 (5.1)
Android M (6.0)
Android N (7.0)
Android N MR1 (7.1, 7.1.1)
Android O (8.0)
Android O MR1 (8.1)
Android P (9.0)
Android Q (10.0)
Android 11.0
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Froyo (2.2.X)
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
Android Gingerbread (2.3.X)
iOS Version 10.0
iOS Version 10.1
iOS Version 10.2
iOS Version 10.3
iOS Version 11.0
iOS Version 11.1
iOS Version 11.2
iOS Version 11.3
iOS Version 11.4
iOS Version 12.0
iOS Version 12.1
iOS Version 12.2
iOS Version 12.3
iOS Version 12.4
iOS Version 13.0
iOS Version 13.1
iOS Version 13.2
iOS Version 13.3
iOS Version 13.4
iOS Version 13.5
iOS Version 13.6
iOS Version 14.0
iOS Version 14.1
iOS Version 14.2
iOS Version 14.3
iOS Version 15.0
iOS Version 16.0
iOS Version 17.0
iOS Version 18.0
iOS Version 19.0
iOS Version 20.0
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
iOS Version 7.0
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
iOS Version 7.1
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
iOS Version 8.0
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
iOS Version 8.1
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
iOS Version 8.2
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
iOS Version 8.3
This constant is deprecated.
Since NeoMAD 4.5. No replacement.
iOS Version 8.4
iOS Version 9.0
iOS Version 9.1
iOS Version 9.2
iOS Version 9.3
Returns the name identifying the device.
Returns the single identifier of the device.
For iOS, it returns the 'identifier for vendor'
(identifier for
vendor: an alphanumeric string that uniquely identifies a device to the app's
vendor). In both cases, the value changes when the user deletes all of that
vendor's apps from the device and subsequently reinstalls one or more of
them.(For more information, see Apple documentation)
Returns the Wifi interface IP address.
To use this method, the WIFI_STATE permission must be declared in the URS file.
no Wifi interface was found | |
UnknownWifiAccessException |
Return true if the current running device is an iPAD
Return true if the current running device is an iPhone
Returns true if the current device is an "iPhone X" family device (iPhone X, iPhnoe 11, iPhone 12...).
Returns true if the current running device is a tablet.
Note: Some android tablets (old devices) are not considered as tablets.