# EGLVersion

Artifact: [androidx.graphics:graphics-core](https://developer.android.com/jetpack/androidx/releases/graphics) [View Source](https://cs.android.com/search?q=file:androidx/graphics/opengl/egl/EGLSpec.kt+class:androidx.graphics.opengl.egl.EGLVersion) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

*** ** * ** ***


```
public final class EGLVersion
```

<br />

*** ** * ** ***

Identifier for the current EGL implementation

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/graphics/opengl/egl/EGLVersion` | `https://developer.android.com/reference/androidx/graphics/opengl/egl/EGLVersion#Unknown()` Sentinel EglVersion value returned in error situations |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/graphics/opengl/egl/EGLVersion` | `https://developer.android.com/reference/androidx/graphics/opengl/egl/EGLVersion#V14()` Constant that represents version 1.4 of the EGL spec |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/graphics/opengl/egl/EGLVersion` | `https://developer.android.com/reference/androidx/graphics/opengl/egl/EGLVersion#V15()` Constant that represents version 1.5 of the EGL spec |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/graphics/opengl/egl/EGLVersion#EGLVersion(kotlin.Int,kotlin.Int)(int major, int minor)` |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/graphics/opengl/egl/EGLVersion#getMajor()()` Major version of the EGL implementation |
| `final int` | `https://developer.android.com/reference/androidx/graphics/opengl/egl/EGLVersion#getMinor()()` Minor version of the EGL implementation |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/graphics/opengl/egl/EGLVersion#toString()()` |

## Public fields

### Unknown

```
public static final @NonNull EGLVersion Unknown
```

Sentinel EglVersion value returned in error situations

### V14

```
public static final @NonNull EGLVersion V14
```

Constant that represents version 1.4 of the EGL spec

### V15

```
public static final @NonNull EGLVersion V15
```

Constant that represents version 1.5 of the EGL spec

## Public constructors

### EGLVersion

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
public EGLVersion(int major, int minor)
```

| Parameters |
|---|---|
| `int major` | Major version of the EGL implementation |
| `int minor` | Minor version of the EGL implementation |

## Public methods

### getMajor

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
public final int getMajor()
```

Major version of the EGL implementation

### getMinor

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
public final int getMinor()
```

Minor version of the EGL implementation

### toString

```
public @NonNull String toString()
```