Chapter    9

Implement a WatchFaces Engine: Core WatchFaces API Methods

Now that you have put the Canvas SurfaceHolder, WatchFaceStyle, TimeZone, TimeUnit, Time, and BroadcastReceiver objects into place for your WatchFace application, you are ready to start getting into the advanced core methods that implement the WatchFaces API.

This chapter will take an in-depth look at the superclasses for the CanvasWatchFacesService and the CanvasWatchFacesService.Engine on which you based your ProWatchFaceService class and Engine class. It is important to learn about the WatchFaceService and WatchFaceService.Engine classes because these contain the methods, attributes, and constants you’ll need to know about to correctly implement the WatchFaces API.

The ...

Get Pro Android Wearables: Building Apps for Smartwatches now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.