# EGLSyncKHR

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

*** ** * ** ***


```
class EGLSyncKHR : EGLHandle
```

<br />

*** ** * ** ***

EGLHandle to wrap native EGLSync objects. This is similar to EGL's EGLSync API except the KHR suffix indicates it is generated as part of the extension APIs namely through `https://developer.android.com/reference/kotlin/androidx/opengl/EGLExt#eglCreateSyncKHR(android.opengl.EGLDisplay,kotlin.Int,androidx.graphics.opengl.egl.EGLConfigAttributes)`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/opengl/EGLSyncKHR#EGLSyncKHR(kotlin.Long)(nativeHandle: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/opengl/EGLSyncKHR#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/opengl/EGLSyncKHR#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/opengl/EGLSyncKHR#toString()()` |

| ### Public properties |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/opengl/EGLSyncKHR#nativeHandle()` Returns the native handle of the wrapped EGL object. |

## Public constructors

### EGLSyncKHR

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

```
EGLSyncKHR(nativeHandle: Long)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### nativeHandle

```
open val nativeHandle: Long
```

Returns the native handle of the wrapped EGL object. This handle can be cast to the corresponding native type on the native side.

For example, EGLDisplay dpy = (EGLDisplay)handle;

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | the native handle of the wrapped EGL object. |