MainPanelEntityTester


public final class MainPanelEntityTester extends 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 methods

boolean
equals(Object other)
int
final void

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

Inherited methods

From androidx.xr.scenecore.testing.PanelEntityTester
final @NonNull PerceivedResolutionResult

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

final void

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

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()

triggerOnPerceivedResolutionChanged

Added in 1.0.0-alpha16
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.

Parameters
@NonNull IntSize2d dimensions

The pixel dimensions of the panel on the camera view.