BuildCompat
public
class
BuildCompat
extends Object
| java.lang.Object | |
| ↳ | android.support.v4.os.BuildCompat |
BuildCompat contains additional platform version checking methods for testing compatibility with new features.
Summary
Public methods | |
|---|---|
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. |
static
boolean
|
isAtLeastO()
Check if the device is running on the Android O release or newer. |
Inherited methods | |
|---|---|
java.lang.Object
| |
Public methods
isAtLeastN
boolean isAtLeastN ()
Check if the device is running on the Android N release or newer.
| Returns | |
|---|---|
boolean |
true if N APIs are available for use
|
isAtLeastNMR1
boolean isAtLeastNMR1 ()
Check if the device is running on the Android N MR1 release or newer.
| Returns | |
|---|---|
boolean |
true if N MR1 APIs are available for use
|
isAtLeastO
boolean isAtLeastO ()
Check if the device is running on the Android O release or newer.
| Returns | |
|---|---|
boolean |
true if O APIs are available for use
|


