MimicApiLevel

Utility to check Mimic API level.

It is safe to use any version constant with any Mimic release because it will be inlined during compilation.

Properties

Link copied to clipboard
const val CURRENT: Int

The latest version at the moment of Mimic COMPILATION.

Link copied to clipboard
const val VERSION_0_6: Int = 1
Link copied to clipboard
const val VERSION_0_6_2: Int = 2
Link copied to clipboard
const val VERSION_0_7: Int = 3
Link copied to clipboard
const val VERSION_0_8: Int = 4

Functions

Link copied to clipboard
fun checkApiLevel(requiredApiLevel: Int): Boolean

Returns true if the current RUNNING Mimic API level is equal or higher than requiredApiLevel, otherwise false.