MainPanelEntityTester


class MainPanelEntityTester : PanelEntityTester


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 functions

open operator Boolean
equals(other: Any?)
open Int
Unit

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

Inherited properties

From androidx.xr.scenecore.testing.PanelEntityTester
PerceivedResolutionResult

The perceived resolution result which can be retrieved by PanelEntity.getPerceivedResolution.

Public functions

equals

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

hashCode

open fun hashCode(): Int

triggerOnPerceivedResolutionChanged

Added in 1.0.0-alpha16
fun triggerOnPerceivedResolutionChanged(dimensions: IntSize2d): Unit

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

This triggers callbacks registered via MainPanelEntity.addPerceivedResolutionChangedListener. This will also affect the value returned by MainPanelEntity.getPerceivedResolution.

Parameters
dimensions: IntSize2d

The pixel dimensions of the panel on the camera view.