# GLSurfaceView.EGLConfigChooser

Added in[API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# GLSurfaceView.EGLConfigChooser

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/opengl/GLSurfaceView.EGLConfigChooser "View this page in Kotlin")\|Java

`
public
static


interface
GLSurfaceView.EGLConfigChooser
`  
`


`

|-----------------------------------------------|
| android.opengl.GLSurfaceView.EGLConfigChooser |

<br />

*** ** * ** ***

An interface for choosing an EGLConfig configuration from a list of potential configurations.

This interface must be implemented by clients wishing to call[GLSurfaceView.setEGLConfigChooser(EGLConfigChooser)](https://developer.android.com/reference/android/opengl/GLSurfaceView#setEGLConfigChooser(android.opengl.GLSurfaceView.EGLConfigChooser))

## Summary

|                                                                                                                                                                                                                                                                          ### Public methods                                                                                                                                                                                                                                                                          ||
|-----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract `[EGLConfig](https://developer.android.com/reference/javax/microedition/khronos/egl/EGLConfig) | ` `[chooseConfig](https://developer.android.com/reference/android/opengl/GLSurfaceView.EGLConfigChooser#chooseConfig(javax.microedition.khronos.egl.EGL10,%20javax.microedition.khronos.egl.EGLDisplay))`(`[EGL10](https://developer.android.com/reference/javax/microedition/khronos/egl/EGL10)` egl, `[EGLDisplay](https://developer.android.com/reference/javax/microedition/khronos/egl/EGLDisplay)` display) ` Choose a configuration from the list. |

## Public methods

### chooseConfig

Added in[API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract EGLConfig chooseConfig (EGL10 egl, 
                EGLDisplay display)
```

Choose a configuration from the list. Implementors typically implement this method by calling[EGL10.eglChooseConfig](https://developer.android.com/reference/javax/microedition/khronos/egl/EGL10#eglChooseConfig(javax.microedition.khronos.egl.EGLDisplay,%20int[],%20javax.microedition.khronos.egl.EGLConfig[],%20int,%20int[]))and iterating through the results. Please consult the EGL specification available from The Khronos Group to learn how to call eglChooseConfig.

<br />

|                          Parameters                           ||
|-----------|----------------------------------------------------|
| `egl`     | `EGL10`: the EGL10 for the current display. <br /> |
| `display` | `EGLDisplay`: the current display. <br />          |

|                                                             Returns                                                             ||
|-----------------------------------------------------------------------------------------------|----------------------------------|
| [EGLConfig](https://developer.android.com/reference/javax/microedition/khronos/egl/EGLConfig) | the chosen configuration. <br /> |