Skip to content

Most visited

Recently visited

navigation

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
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.