> For the complete documentation index, see [llms.txt](https://lfdocs.lookingglassfactory.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lfdocs.lookingglassfactory.com/software/index/script-reference/ios-sample-scene-scripts/pagetesthandler.cs.md).

# PageTestHandler.cs

Manages the UI logic for the test page in a Looking Glass demo. It supports displaying, clearing, and customizing a test image quilt, along with handling the "Don't Show Again" preference.

## Fields & Properties

### Button addCalibrationBt

Button to add a new calibration file.

### Button clearTestImgBtn

Button to clear or show the test image.

### Button doneButton

Button to complete the test and navigate to the last page.

### Toggle dontShowAgainToggle

Toggle to remember the user's preference for showing the test page.

### Texture testQuilt

Texture used as the test image quilt.

### QuiltSettings testQuiltSetting

Quilt settings for the test image.

## Methods

### void OnAddCalibration()

Opens the calibration file picker.

### void OnClearTestImage()

Clears the test image from the display.

### void OnShowTestImage()

Displays the test image on the display.

### void ToggleTestImage(bool isEnabled)

Toggles the visibility of the test image and updates the `HologramCamera` state.

* `bool isEnabled`: Whether to enable or disable the test image.

### void OnDoneClicked()

Completes the test page interactions and navigates to the last page.
