@TargetApi(24) class MyClass { ... }
Programming Tips - Android: indicate some code is for at least an Android level
Date: 2020nov5
OS: Android
Language: Java
Q. Android: indicate some code is for at least an Android level
A. Use the @TargetApi annotation, for example: