안드로이드/Issue
Android # 진동(Vibrate) method 버전확인 후 적용시키기
Philip.Box
2019. 12. 16. 09:45
진동(Vibrate) method 버전확인 후 적용시키기
vibrate() 메서드는 안드로이드 버전 26부터 VibrationEffect를 파라미터로 전달하는 메서드로 변경되었다.
따라서, 이 변경된 내용을 반영하기 위해서는 Build.VERSION.SDK_INT 상수를 이용해 현재 단말의 버전을 체크하는 과정이 필요하다.
