DefaultBuildVersionSdkIntProvider

class DefaultBuildVersionSdkIntProvider @Inject constructor : BuildVersionSdkIntProvider

Constructors

Link copied to clipboard
@Inject
fun DefaultBuildVersionSdkIntProvider()

Functions

Link copied to clipboard
open override fun get(): Int

Return the current version of the Android SDK.

Link copied to clipboard
@ChecksSdkIntAtLeast(parameter = 0)
open fun isAtLeast(version: Int): Boolean
Link copied to clipboard
@ChecksSdkIntAtLeast(parameter = 0, lambda = 1)
open fun <T> whenAtLeast(version: Int, result: () -> T): T?

Checks the if the current OS version is equal or greater than version.