Matter devices, Google has developed the Google Home Mobile SDK . The Mobile SDK includes two core APIs that allow your apps to to commission and share devices with the Google fabric.와 상호작용하는 Android 애플리케이션을 빌드하는 데 도움이 됩니다.
기기가 Google 패브릭에 추가되면 사용자가 Google Home app (GHA) , Android power controls, voice, and Nest touch screen devices.를 통해 기기를 제어할 수 있습니다.
Mobile SDK를 사용하면 추가 Matter 생태계에 기기를 의뢰하는 데 사용할 수 있는 맞춤 수수료 서비스를 정의할 수도 있습니다.
Android 앱에 모바일 SDK 통합
시작하려면 다음 단계를 완료하세요.
Google Play services 설정에 제공된 안내를 따릅니다.
build.gradle
파일에 Play services 종속 항목을 추가합니다.implementation 'com.google.android.gms:play-services-home:16.0.0-beta1'
Matter용 Google Home 샘플 앱 사용
Mobile SDK가 Android 앱에서 작동하는 방식을 알아보려면 Google Home Sample App for Matter .를 사용해 보세요.
자체 앱 빌드
빠르게 시작할 수 있도록 Sample App for Matter을 오픈소스로 제공하고 자체 Codelab을 위해 샘플 코드를 맞춤설정할 수 있는 컴패니언 Codelab을 제공했습니다.
Sample App for Matter Codelab으로 이동
자료
Mobile SDK에 대한 자세한 내용은 API 참조를 확인하세요.
이 SDK에서 최종 사용자 데이터를 처리하는 방법을 알아보려면 Home Mobile SDK Google Play 데이터 보안 섹션을 참고하세요.