WearOs2 Health service 1. Passive Experiences 2. Active Experiences Active - 즉각적인 피드백을 받을수있다. passive - 즉각적이지 않아도 되는 데이터를 사용할때 사용. *기본적인 환경 설정. 모듈의 build.gradle에 아래와 같이 선언해준다. dependencies { implementation 'androidx.health:health-services-client:1.0.0-alpha02' // For Kotlin, this library helps bridge between Futures and coroutines. implementation "com.google.guava:guava:30.1.1-android" implementation "androidx.concurr.. 2021. 11. 17. 웨어러블 - 모바일 디바이스 간 데이터 전송 모바일(수신측) - 웨어러블(발신측) 의 데이터 송수신을 해보자. 모바일은 여러개의 웨어러블과 연결될수 있기때문에 상대방의 nodeId를 알아내는 과정이필요하자. 먼저 모바일에 voice_transcription기능을 추가하기위해 모바일의 res/values/ 디렉터리에 wear.xml 파일을 만들어서 아래와 같이 선언. voice_transcription 웨어러블에서 아래와 같은 코드를 통해 voice_transcription 기능이 있는 최선의 node를 검색 private const val VOICE_TRANSCRIPTION_CAPABILITY_NAME = "voice_transcription" ... private fun setupVoiceTranscription() { val capability.. 2021. 11. 16. 이전 1 다음