# ResizableComponentTester

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

*** ** * ** ***


```
class ResizableComponentTester
```

<br />

*** ** * ** ***

A test-only accessor for `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/ResizableComponent` 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/ResizableComponentTester#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/ResizableComponentTester#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/ResizableComponentTester#triggerOnResizeEvent(androidx.xr.scenecore.ResizeEvent)(resizeEvent: https://developer.android.com/reference/kotlin/androidx/xr/scenecore/ResizeEvent)` Simulates a resize event from the runtime, notifying all registered listeners. |

## Public functions

### equals

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

### hashCode

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

### triggerOnResizeEvent

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

```
fun triggerOnResizeEvent(resizeEvent: ResizeEvent): Unit
```

Simulates a resize event from the runtime, notifying all registered listeners.

This triggers callbacks registered via `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/ResizableComponent#addResizeEventListener(java.util.concurrent.Executor,java.util.function.Consumer)`.

| Parameters |
|---|---|
| `resizeEvent: https://developer.android.com/reference/kotlin/androidx/xr/scenecore/ResizeEvent` | The `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/ResizeEvent` to be sent. |