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


使用OpenGL ES 2.0绘制的表面基础类。 提供类似于invalidate()的无效机制。 将视口设置为覆盖整个屏幕区域,包括插页。

注意:在这样记录的方法中调用GL API是安全的。

Summary

Nested classes

class Gles2WatchFaceService.Engine

使用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