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

*** ** * ** ***


```
public class PanelEntityTester
```

<br />

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

|---|---|
| `https://developer.android.com/reference/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/androidx/xr/scenecore/PanelEntity` that enables direct manipulation and inspection of its internal state.

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/PanelEntityTester#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/PerceivedResolutionResult` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/PanelEntityTester#getPerceivedResolutionResult()()` The perceived resolution result which can be retrieved by `https://developer.android.com/reference/androidx/xr/scenecore/PanelEntity#getPerceivedResolution(androidx.xr.arcore.RenderViewpoint)`. |
| `int` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/PanelEntityTester#hashCode()()` |
| `final void` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/PanelEntityTester#setPerceivedResolutionResult(androidx.xr.scenecore.PerceivedResolutionResult)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/PerceivedResolutionResult value)` The perceived resolution result which can be retrieved by `https://developer.android.com/reference/androidx/xr/scenecore/PanelEntity#getPerceivedResolution(androidx.xr.arcore.RenderViewpoint)`. |

## Public methods

### equals

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

### getPerceivedResolutionResult

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

```
public final @NonNull PerceivedResolutionResult getPerceivedResolutionResult()
```

The perceived resolution result which can be retrieved by `https://developer.android.com/reference/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.

### hashCode

```
public int hashCode()
```

### setPerceivedResolutionResult

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

```
public final void setPerceivedResolutionResult(@NonNull PerceivedResolutionResult value)
```

The perceived resolution result which can be retrieved by `https://developer.android.com/reference/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.