public class OSInfo
extends java.lang.Object
| Constructor and Description |
|---|
OSInfo()
Empty constructor to instantiate all variables as null.
(sdk version as -1). |
OSInfo(java.lang.String codename,
java.lang.String incremental,
int sdkVersion,
java.lang.Boolean isPreviewRelease)
Constructor with all variables.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
buildTextReport()
Builds a text report with the gathered information
|
java.lang.StringBuilder |
buildTextReport(java.lang.StringBuilder report)
Builds a text report with the gathered information
|
static OSInfo |
getAutoOSInfo()
Auto generates an instance of
OSInfo with all variables filled with the default values using the Build class. |
java.lang.String |
getCodename()
The OS codename (e.g.
|
java.lang.String |
getIncremental()
The OS build hash/number
|
int |
getSdkVersion()
Get the OS SDK version number (e.g.
|
boolean |
isPreviewRelease()
Boolean representing whether this OS is a preview build
|
OSInfo |
setCodename(java.lang.String codename)
Sets the OS codename
|
OSInfo |
setIncremental(java.lang.String incremental)
Sets the OS build hash/number
|
OSInfo |
setPreviewRelease(java.lang.Boolean isPreviewRelease)
Sets whether the OS is a review build
|
OSInfo |
setSdkVersion(int sdkVersion)
Sets the OS SDK version number (e.g.
|
public OSInfo()
public OSInfo(java.lang.String codename,
java.lang.String incremental,
int sdkVersion,
java.lang.Boolean isPreviewRelease)
codename - The android version codename.incremental - The OS build hash/number.sdkVersion - The OS sdk version (e.g. 23).isPreviewRelease - Whether this OS is a preview release (API 23 +).public java.lang.StringBuilder buildTextReport()
public java.lang.StringBuilder buildTextReport(java.lang.StringBuilder report)
public java.lang.String getCodename()
public OSInfo setCodename(java.lang.String codename)
public java.lang.String getIncremental()
public OSInfo setIncremental(java.lang.String incremental)
public int getSdkVersion()
public OSInfo setSdkVersion(int sdkVersion)
public boolean isPreviewRelease()
public OSInfo setPreviewRelease(java.lang.Boolean isPreviewRelease)