-
public final class PlatformDependent
Allow platform dependent logic such as checks for Android. Modeled after Netty with some code copy/pasted from: https://github.com/netty/netty/blob/master/common/src/main/java/io/netty/util/internal/PlatformDependent.java
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
ANDROID_API_VERSION_IS_NOT_ANDROID
-
Method Summary
Modifier and Type Method Description static boolean
isAndroid()
Returns {@code true}
if and only if the current platform is Android.static int
getAndroidApiVersion()
Returns version of Android API. -
-
Method Detail
-
isAndroid
static boolean isAndroid()
Returns
{@code true}
if and only if the current platform is Android.
-
getAndroidApiVersion
static int getAndroidApiVersion()
Returns version of Android API.
-
-
-
-