|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metaio.tools.SystemInfo
public final class SystemInfo
This class provides helper functions to retrieve various system information
Constructor Summary | |
---|---|
SystemInfo()
|
Method Summary | |
---|---|
static int |
getCameraIndex(int facing)
Get first index of the front or back facing camera |
static float |
getDisplayDensity(Context context)
Get display pixel density |
static int |
getNumCPUCores()
Gets the number of CPU cores available on this device, across all processors. |
static boolean |
isCPUSupported()
Determine if device CPU is supported by metaio SDK |
static boolean |
isEmulator()
Determine if running on Android Emulator |
static boolean |
isTablet(Context context)
Determine if the device is a tablet. |
static String |
readCPUInfo()
Read CPU information by running a system command |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemInfo()
Method Detail |
---|
public static int getNumCPUCores()
Source: StackOverflow
public static boolean isEmulator()
public static boolean isTablet(Context context)
public static boolean isCPUSupported()
public static String readCPUInfo()
public static int getCameraIndex(int facing)
facing
- CameraInfo#CAMERA_FACING_BACK
or CameraInfo#CAMERA_FACING_FRONT
public static float getDisplayDensity(Context context)
context
- Application context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |