# GltfModelTester

Artifact: [androidx.xr.scenecore:scenecore-testing](https://developer.android.com/jetpack/androidx/releases/xr-scenecore) [View Source](https://cs.android.com/search?q=file:androidx/xr/scenecore/testing/GltfModelTester.kt+class:androidx.xr.scenecore.testing.GltfModelTester) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

*** ** * ** ***


```
public final class GltfModelTester
```

<br />

*** ** * ** ***

A data container for inspecting the properties of a `https://developer.android.com/reference/androidx/xr/scenecore/GltfModel` resource.

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/GltfModelTester#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull byte[]` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/GltfModelTester#getAssetData()()` The raw byte data of the glTF asset. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/GltfModelTester#getAssetKey()()` A unique key identifying the asset in the fake rendering runtime. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/GltfModelTester#getAssetPath()()` The path or URI string of the glTF asset file used to create the `https://developer.android.com/reference/androidx/xr/scenecore/GltfModel`. |
| `int` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/GltfModelTester#hashCode()()` |

## Public methods

### equals

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

### getAssetData

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

```
public final @NonNull byte[] getAssetData()
```

The raw byte data of the glTF asset.

### getAssetKey

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

```
public final @NonNull String getAssetKey()
```

A unique key identifying the asset in the fake rendering runtime.

### getAssetPath

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

```
public final @NonNull String getAssetPath()
```

The path or URI string of the glTF asset file used to create the `https://developer.android.com/reference/androidx/xr/scenecore/GltfModel`.

This value represents:

- The `path` parameter from `https://developer.android.com/reference/androidx/xr/scenecore/GltfModel.Companion#create(androidx.xr.scenecore.runtime.RenderingRuntime,kotlin.String)` when created via a `https://developer.android.com/reference/java/nio/file/Path.html` (relative to the application's `assets/` folder).

- The `uri` parameter from `https://developer.android.com/reference/androidx/xr/scenecore/GltfModel.Companion#create(androidx.xr.scenecore.runtime.RenderingRuntime,kotlin.String)` when created via an `https://developer.android.com/reference/android/net/Uri.html`.

The default value is `""` (an empty string). This typically indicates that the model was not loaded from a file path or URI (for example, if it was created using a byte array via `GltfModel.create(session, assetData, assetKey)`).

### hashCode

```
public int hashCode()
```