개발 공부/Android / / 2019. 1. 13. 23:59

[Android Kotlin] 코틀린 Annotations (어노테이션)

@RequiresApi(api = Build.VERSION_CODES.M)
@TargetApi(Build.VERSION_CODES.M)
class FingerprintHandlerM() : FingerprintManager.AuthenticationCallback()

 

@RequiresApi - Denotes that the annotated element should only be called on the given API level or higher.
지정된 API 수준 이상에서만 호출되어야 함을 나타냅니다.
 
@TargetApi - Indicates that Lint should treat this type as targeting a given API level, no matter what the project target is.
프로젝트 타겟에 관계없이 지정된 API 레벨을 대상으로 처리해야 함을 나타냅니다.

 

  • 네이버 블로그 공유
  • 네이버 밴드 공유
  • 페이스북 공유
  • 카카오스토리 공유