# 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)

*** ** * ** ***


```
public final class EGLSyncKHR implements 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/androidx/opengl/EGLExt#eglCreateSyncKHR(android.opengl.EGLDisplay,kotlin.Int,androidx.graphics.opengl.egl.EGLConfigAttributes)`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/opengl/EGLSyncKHR#EGLSyncKHR(kotlin.Long)(long nativeHandle)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/opengl/EGLSyncKHR#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `long` | `https://developer.android.com/reference/androidx/opengl/EGLSyncKHR#getNativeHandle()()` Returns the native handle of the wrapped EGL object. |
| `int` | `https://developer.android.com/reference/androidx/opengl/EGLSyncKHR#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/opengl/EGLSyncKHR#toString()()` |

## Public constructors

### EGLSyncKHR

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

```
public EGLSyncKHR(long nativeHandle)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getNativeHandle

```
public long getNativeHandle()
```

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 |
|---|---|
| `long` | the native handle of the wrapped EGL object. |

### hashCode

```
public int hashCode()
```

### toString

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