SurfaceEntityTester


class SurfaceEntityTester


A test-only accessor for SurfaceEntity that enables direct manipulation and inspection of its internal state.

Summary

Public functions

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

Public properties

PerceivedResolutionResult

Configures the perceived resolution of the entity, to be retrieved by SurfaceEntity.getPerceivedResolution.

Surface

The Surface used by the SurfaceEntity.

Public functions

equals

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

hashCode

open fun hashCode(): Int

Public properties

perceivedResolutionResult

Added in 1.0.0-alpha16
var perceivedResolutionResultPerceivedResolutionResult

Configures the perceived resolution of the entity, to be retrieved by SurfaceEntity.getPerceivedResolution.

Note: Unlike the real SurfaceEntity.getPerceivedResolution method, the value returned by this getter is independent of any specific viewpoint or scene pose. It simply returns the last value that was set via this property.

surface

Added in 1.0.0-alpha16
var surfaceSurface

The Surface used by the SurfaceEntity.

Setting this property replaces the current Surface associated with the SurfaceEntity. In this testing implementation, the Surface can be set at any time and can be retrieved by calling SurfaceEntity.getSurface. This allows tests to provide a specific Surface instance (such as one connected to a test-controlled producer) to verify rendering behavior.