Added in API level 5

EGLWindowSurfaceFactory

interface EGLWindowSurfaceFactory
android.opengl.GLSurfaceView.EGLWindowSurfaceFactory

An interface for customizing the eglCreateWindowSurface and eglDestroySurface calls.

This interface must be implemented by clients wishing to call GLSurfaceView#setEGLWindowSurfaceFactory(EGLWindowSurfaceFactory)

Summary

Public methods
abstract EGLSurface!
createWindowSurface(egl: EGL10!, display: EGLDisplay!, config: EGLConfig!, nativeWindow: Any!)

abstract Unit
destroySurface(egl: EGL10!, display: EGLDisplay!, surface: EGLSurface!)

Public methods

createWindowSurface

Added in API level 5
abstract fun createWindowSurface(
    egl: EGL10!,
    display: EGLDisplay!,
    config: EGLConfig!,
    nativeWindow: Any!
): EGLSurface!
Return
EGLSurface! null if the surface cannot be constructed.

destroySurface

Added in API level 5
abstract fun destroySurface(
    egl: EGL10!,
    display: EGLDisplay!,
    surface: EGLSurface!
): Unit