isWebXrAvailable method

  1. @override
bool isWebXrAvailable()
override

Checks if WebXR is available and compatible on the current platform.

This method first verifies whether WebXR is fundamentally supported. If supported, additional checks for browser compatibility and device type (mobile) are performed.

@return A Future<bool> that returns true if WebXR is available and compatible; otherwise false.

Implementation

@override
bool isWebXrAvailable() {
  bool isWebXrAvailable = xrController.isWebXrSupported();

  if (!isWebXrAvailable) return false;
  return checkRequirements();
}