Nedir arasındaki fark RequiresApi
ve TargetApi
?
Kotlin'deki örnek:
@RequiresApi(api = Build.VERSION_CODES.M)
@TargetApi(Build.VERSION_CODES.M)
class FingerprintHandlerM() : FingerprintManager.AuthenticationCallback()
NOT: FingerprintManager.AuthenticationCallback
API gerektirirM
NOT 2: TargetApi kullanmazsam hata vererek başarısız olur class requires api level 23...