@ThreadSafe @LevelUpApi(contract=INTERNAL) public final class EnvironmentUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isOpenGlEs20Supported(Context context) |
static boolean |
isSdk11OrGreater()
Determines whether the current SDK is greater than or equal to 11.
|
static boolean |
isSdk12OrGreater()
Determines whether the current SDK is greater than or equal to 12.
|
static boolean |
isSdk14OrGreater()
Determines whether the current SDK is greater than or equal to 14.
|
static boolean |
isSdk15OrGreater()
Determines whether the current SDK is greater than or equal to 15.
|
static boolean |
isSdk16OrGreater()
Determines whether the current SDK is greater than or equal to 16.
|
static boolean |
isSdk17OrGreater()
Determines whether the current SDK is greater than or equal to 17.
|
static boolean |
isSdk18OrGreater()
Determines whether the current SDK is greater than or equal to 18.
|
static boolean |
isSdk19OrGreater()
Determines whether the current SDK is greater than or equal to 19.
|
static boolean |
isSdk21OrGreater()
Determines whether the current SDK is greater than or equal to 21.
|
static boolean |
isSdk22OrGreater()
Determines whether the current SDK is greater than or equal to 22.
|
static boolean |
isSdk9OrGreater()
Determines whether the current SDK is greater than or equal to 9.
|
public static boolean isOpenGlEs20Supported(Context context)
context
- Application context.public static boolean isSdk9OrGreater()
true
if Build.VERSION.SDK_INT
is greater than or equal
to 9.public static boolean isSdk11OrGreater()
true
if Build.VERSION.SDK_INT
is greater than or equal
to 11.public static boolean isSdk12OrGreater()
true
if Build.VERSION.SDK_INT
is greater than or equal to
12.public static boolean isSdk14OrGreater()
true
if Build.VERSION.SDK_INT
is greater than or equal to
14.public static boolean isSdk15OrGreater()
true
if Build.VERSION.SDK_INT
is greater than or equal to
15.public static boolean isSdk16OrGreater()
true
if Build.VERSION.SDK_INT
is greater than or equal to
16.public static boolean isSdk17OrGreater()
true
if Build.VERSION.SDK_INT
is greater than or equal to
17.public static boolean isSdk18OrGreater()
true
if Build.VERSION.SDK_INT
is greater than or equal to
18.public static boolean isSdk19OrGreater()
true
if Build.VERSION.SDK_INT
is greater than or equal
to 19.public static boolean isSdk21OrGreater()
true
if Build.VERSION.SDK_INT
is greater than or equal
to 21.public static boolean isSdk22OrGreater()
true
if Build.VERSION.SDK_INT
is greater than or equal
to 22.