doIfSdk

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

Execute f only if the current Android SDK version is version Optionally, execute else if the current Android SDK version doesn't match the provided one.


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

Execute f only if the current Android SDK version is version