doStartingFromSdk

fun doStartingFromSdk(version: Int, f: () -> Unit, else: () -> Unit = {})

Execute f only if the current Android SDK version is version or newer. Optionally, execute else if the current Android SDK version is lower than the provided one.


fun doStartingFromSdk(version: Int, f: () -> Unit)

Execute f only if the current Android SDK version is version or newer.