close
The Wayback Machine - https://web.archive.org/web/20170212011758/https://developer.android.com/reference/android/support/v4/os/BuildCompat.html
Skip to content

Most visited

Recently visited

navigation

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

BERJAYAFrom class 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
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.