Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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}