-
public interface BuildSdkVersionProviderWrapper around android.os.Build.VERSION.SDK_INT in order to simplify mocking in tests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBuildSdkVersionProvider.Companion
-
Method Summary
Modifier and Type Method Description abstract IntegergetVersion()Value of android.os.Build.VERSION.SDK_INT. abstract BooleangetIsAtLeastN()abstract BooleangetIsAtLeastO()abstract BooleangetIsAtLeastP()abstract BooleangetIsAtLeastQ()abstract BooleangetIsAtLeastR()abstract BooleangetIsAtLeastS()abstract BooleangetIsAtLeastTiramisu()-
-
Method Detail
-
getVersion
abstract Integer getVersion()
Value of android.os.Build.VERSION.SDK_INT.
-
getIsAtLeastN
@ChecksSdkIntAtLeast(api = 24) abstract Boolean getIsAtLeastN()
-
getIsAtLeastO
@ChecksSdkIntAtLeast(api = 26) abstract Boolean getIsAtLeastO()
-
getIsAtLeastP
@ChecksSdkIntAtLeast(api = 28) abstract Boolean getIsAtLeastP()
-
getIsAtLeastQ
@ChecksSdkIntAtLeast(api = 29) abstract Boolean getIsAtLeastQ()
-
getIsAtLeastR
@ChecksSdkIntAtLeast(api = 30) abstract Boolean getIsAtLeastR()
-
getIsAtLeastS
@ChecksSdkIntAtLeast(api = 31) abstract Boolean getIsAtLeastS()
-
getIsAtLeastTiramisu
@ChecksSdkIntAtLeast(api = 33) abstract Boolean getIsAtLeastTiramisu()
-
-
-
-