Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #84 from novoda/android_version_27
Browse files Browse the repository at this point in the history
Add support for API 25 and 27 in AndroidVersion
  • Loading branch information
ouchadam authored Apr 16, 2018
2 parents 2f99ebc + 7c928cb commit 0b42f41
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ public boolean is24NougatOrOver() {
return osApiLevel >= Build.VERSION_CODES.N;
}

public boolean is25Nougat() {
return osApiLevel == Build.VERSION_CODES.N_MR1;
}

public boolean is25NougatOrOver() {
return osApiLevel >= Build.VERSION_CODES.N_MR1;
}

public boolean is26Oreo() {
return osApiLevel == Build.VERSION_CODES.O;
}
Expand All @@ -92,6 +100,14 @@ public boolean is26OreoOrOver() {
return osApiLevel >= Build.VERSION_CODES.O;
}

public boolean is27Oreo() {
return osApiLevel == Build.VERSION_CODES.O_MR1;
}

public boolean is27OreoOrOver() {
return osApiLevel >= Build.VERSION_CODES.O_MR1;
}

public int apiLevel() {
return osApiLevel;
}
Expand Down

0 comments on commit 0b42f41

Please sign in to comment.