MainPanelEntityTester
public final class MainPanelEntityTester extends PanelEntityTester
| java.lang.Object | ||
| ↳ | androidx.xr.scenecore.testing.PanelEntityTester | |
| ↳ | 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 |
|
int |
hashCode() |
final void |
triggerOnPerceivedResolutionChanged(@NonNull IntSize2d dimensions)Changes the perceived resolution of the main window, invoking all registered listeners. |
Inherited methods |
||||
|---|---|---|---|---|
|
Public methods
triggerOnPerceivedResolutionChanged
public final void triggerOnPerceivedResolutionChanged(@NonNull IntSize2d dimensions)
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.