# MainPanelEntityTester

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

*** ** * ** ***


```
public final class MainPanelEntityTester extends PanelEntityTester
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.xr.scenecore.testing.PanelEntityTester](https://developer.android.com/reference/androidx/xr/scenecore/testing/PanelEntityTester) ||
|   | ↳ | [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.

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/MainPanelEntityTester#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `int` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/MainPanelEntityTester#hashCode()()` |
| `final void` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/MainPanelEntityTester#triggerOnPerceivedResolutionChanged(androidx.xr.runtime.math.IntSize2d)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/IntSize2d dimensions)` Changes the perceived resolution of the main window, invoking all registered listeners. |

### Inherited methods

From [androidx.xr.scenecore.testing.PanelEntityTester](https://developer.android.com/reference/androidx/xr/scenecore/testing/PanelEntityTester) `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)`.
`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)
```

### hashCode

```
public int hashCode()
```

### triggerOnPerceivedResolutionChanged

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

```
public final void triggerOnPerceivedResolutionChanged(@NonNull IntSize2d dimensions)
```

Changes the perceived resolution of the main window, invoking all registered listeners.

This triggers callbacks registered via `https://developer.android.com/reference/androidx/xr/scenecore/MainPanelEntity#addPerceivedResolutionChangedListener(java.util.concurrent.Executor,java.util.function.Consumer)`. This will also affect the value returned by `https://developer.android.com/reference/androidx/xr/scenecore/PanelEntity#getPerceivedResolution(androidx.xr.arcore.RenderViewpoint)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/IntSize2d dimensions` | The pixel dimensions of the panel on the camera view. |