Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

Gles2WatchFaceService

public abstract class Gles2WatchFaceService
extends WatchFaceService

java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.app.Service
         ↳ android.service.wallpaper.WallpaperService
           ↳ android.support.wearable.watchface.WatchFaceService
             ↳ android.support.wearable.watchface.Gles2WatchFaceService


Base class for watch faces that draw using OpenGL ES 2.0. Provides an invalidate mechanism similar to invalidate(). Sets the viewport to cover the entire screen area, including insets.

Note: It's only safe to call GL APIs in methods documented as such.

Summary

Nested classes

class Gles2WatchFaceService.Engine

The actual implementation of a watch face that draws using OpenGL ES 2.0. 

Inherited constants

From class android.support.wearable.watchface.WatchFaceService
From class android.service.wallpaper.WallpaperService
From class android.app.Service
From class android.content.Context
From interface android.content.ComponentCallbacks2

Public constructors

Gles2WatchFaceService()

Public methods

Gles2WatchFaceService.Engine onCreateEngine()

Inherited methods

From class android.support.wearable.watchface.WatchFaceService
From class android.service.wallpaper.WallpaperService
From class android.app.Service
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks2
From interface android.content.ComponentCallbacks

Public constructors

Gles2WatchFaceService

Gles2WatchFaceService ()

Public methods

onCreateEngine

Gles2WatchFaceService.Engine onCreateEngine ()

Returns
Gles2WatchFaceService.Engine