feat: Add a function to check for Android 13
This commit is contained in:
parent
71b2f8bc32
commit
3e93dcfc4d
1 changed files with 9 additions and 0 deletions
|
@ -82,4 +82,13 @@ object VersionUtils {
|
|||
fun hasS(): Boolean {
|
||||
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.S
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true if device is running API >= 33
|
||||
*/
|
||||
@ChecksSdkIntAtLeast(api = Build.VERSION_CODES.TIRAMISU)
|
||||
@JvmStatic
|
||||
fun hasT(): Boolean {
|
||||
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue