android / wear-os-samples

Multiple samples showing best practices in app and watch face development on Wear OS.

Home Page:https://developer.android.com/wear

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • WatchFaceKotlin (Kotlin) - Demos the AndroidX Watch Face APIs which provide their own storage mechanism for watch face preference values.

  • 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 an advanced Compose sample, handling permissions, use of effects, animations and ConstraintLayout for Compose. Guide

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

About

Multiple samples showing best practices in app and watch face development on Wear OS.

https://developer.android.com/wear

License:Apache License 2.0


Languages

Language:Kotlin 99.6%Language:Shell 0.4%