public class BuildCompat extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isAtLeastN()
Check if the device is running on the Android N release or newer.
|
static boolean |
isAtLeastNMR1()
Check if the device is running on the Android N MR1 release or newer.
|
public static boolean isAtLeastN()
true
if N APIs are available for usepublic static boolean isAtLeastNMR1()
true
if N MR1 APIs are available for use