# ImageBasedLightingAssetTester

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/ImageBasedLightingAssetTester.kt+class:androidx.xr.scenecore.testing.ImageBasedLightingAssetTester) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

*** ** * ** ***


```
public final class ImageBasedLightingAssetTester
```

<br />

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/ImageBasedLightingAssetTester#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/ImageBasedLightingAssetTester#getAssetData()()` The raw byte data of the 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/ImageBasedLightingAssetTester#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/ImageBasedLightingAssetTester#getAssetPath()()` A string representation of the source location for the preprocessed `.zip` `https://developer.android.com/reference/androidx/xr/scenecore/ImageBasedLightingAsset`. |
| `int` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/ImageBasedLightingAssetTester#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 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()
```

A string representation of the source location for the preprocessed `.zip` `https://developer.android.com/reference/androidx/xr/scenecore/ImageBasedLightingAsset`. The exact contents and format of this string depend on which factory method was used to create this instance.

- If created using `https://developer.android.com/reference/androidx/xr/scenecore/ImageBasedLightingAsset.Companion#createFromZip(androidx.xr.runtime.Session,androidx.xr.scenecore.runtime.RenderingRuntime,kotlin.String)` (with `https://developer.android.com/reference/java/nio/file/Path.html`): This value is the result of `path.toString()`. The input `https://developer.android.com/reference/java/nio/file/Path.html` must be relative to the application's `assets/` folder, so this string will represent a relative path, typically using `/` as a separator. Examples:

  - `Paths.get("test.zip")` results in `assetPath` being `"test.zip"`.

  - `Paths.get("data", "test.zip")` results in `assetPath` being `"data/test.zip"`.

- If created using `https://developer.android.com/reference/androidx/xr/scenecore/ImageBasedLightingAsset.Companion#createFromZip(androidx.xr.runtime.Session,androidx.xr.scenecore.runtime.RenderingRuntime,kotlin.String)` (with `https://developer.android.com/reference/android/net/Uri.html`): This value is the result of `uri.toString()`. This can be any valid `https://developer.android.com/reference/android/net/Uri.html` string representation supported for loading assets, including relative paths or URIs with schemes. Examples:

  - `"data/test.zip".toUri()` (using AndroidX extension) results in `assetPath` being `"data/test.zip"`.

### hashCode

```
public int hashCode()
```