Skip to content
Proyek

android/wear-os-samples

Lihat di GitHub

Tentang

Berbagai contoh yang menunjukkan praktik terbaik dalam pengembangan aplikasi dan tampilan jam di Wear OS.

Pembelajaran dan pendidikan

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
-1
dalam 7 hari
-1
dalam 15 hari
+3
dalam 1 bulan
+5

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Wear OS Samples Repository

This repository contains a set of individual Android Studio projects to help you get started writing Wear OS apps and watch faces.

Read below for a description of each sample.

Samples

  • ComposeStarter (Compose/Kotlin) - Demonstrates simple Compose for Wear OS app devs can use as a starting point for their own Compose app.

  • DataLayer (Compose/Kotlin) - Demonstrates communicating via the data layer between the watch and the phone. Guide

  • WatchFaceFormat - Demos the new Watch Face Format which allows quick development of performant watch faces in XML Guide

  • Complications (Kotlin) - If you are writing a watch face with complications, this app gives you a full suite of data sources to test against your implementation of complications to make sure it looks good. Complication Guide

  • WearOAuth (Kotlin) - Demonstrates how developers can authenticate a user on their Wear OS app via the user's mobile/phone device without requiring a mobile app (Wear OS companion app handles the request on the mobile side). The sample uses OAuth. Guide

  • WearSpeakerSample (Compose/Kotlin) - Demonstrates audio recording and playback if the wearable device has a speaker. This is also demonstrate how to handling permissions. Guide

  • WearTilesKotlin (Kotlin) - Demonstrates tiles using the AndroidX library. Guide

  • WatchFacePush (Kotlin) - Demonstrates the Watch Face Push AndroidX Library. Guide

  • WearWidget (Compose/Kotlin) - Demonstrates building Wear Widgets using Remote Compose. Guide

Jelajahi proyek terkait

Memuat…