# PanelEntityTester

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

*** ** * ** ***


```
open class PanelEntityTester
```

<br />

Known direct subclasses [MainPanelEntityTester](https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/MainPanelEntityTester)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/MainPanelEntityTester` | A test data accessor for the `session.scene.mainPanelEntity`, which is associated with the main window for the Runtime, to inspect and manipulate underlying fake data. |

*** ** * ** ***

A test-only accessor for `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/PanelEntity` that enables direct manipulation and inspection of its internal state.

## Summary

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/PanelEntityTester#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/xr/scenecore/testing/PanelEntityTester#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/PerceivedResolutionResult` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/PanelEntityTester#perceivedResolutionResult()` The perceived resolution result which can be retrieved by `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/PanelEntity#getPerceivedResolution(androidx.xr.arcore.RenderViewpoint)`. |

## Public functions

### equals

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

### hashCode

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

## Public properties

### perceivedResolutionResult

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

```
var perceivedResolutionResult: PerceivedResolutionResult
```

The perceived resolution result which can be retrieved by `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/PanelEntity#getPerceivedResolution(androidx.xr.arcore.RenderViewpoint)`.

Setting this property allows tests to simulate various outcomes for perceived resolution queries, including success with specific dimensions or failure due to entity distance or invalid viewpoints.