Newer Version Available

This content describes an older version of this product. View Latest

AR SpaceCapture API

Access a device’s camera and AR capabilities from an LWC.
1function scanRoom(options) {
2	return new Promise((resolve, reject) => {
3		// Implement the logic to scan the room using the provided options
4		// and return the ARSpaceCaptureResult
5		// When the scan is complete, resolve the promise with the result
6		resolve({
7			// Populate the ARSpaceCaptureResult object with the appropriate data
8		});
9	});
10}