UNPKG

@shopware-ag/dive

Version:

Shopware Spatial Framework

54 lines (53 loc) 2.11 kB
import { ARSystemOptions } from '../ARSystem.ts'; export declare class SceneViewer { /** * Launches AR using SceneViewer (Android-specific implementation) * Note: SceneViewer is supported on all Android devices. If ARCore is not installed, * the model will be displayed in 3D view mode instead of AR mode. * * @param uri - The URI of the 3D model to display in AR * @param options - Optional configuration for the AR experience * @returns Promise that resolves when SceneViewer is launched successfully * @throws Error if there's an issue launching SceneViewer */ launch(uri: string, options?: ARSystemOptions): void; /** * Creates the base URL parameters for SceneViewer * @param location Current page location URL * @returns URLSearchParams with base configuration */ private _createParams; /** * Applies the scale option to the parameters * If scale is set to 'fixed', the model will not be resizable in AR * @param params URLSearchParams to modify */ private _applyScaleOption; /** * Applies the placement option to the parameters * If placement is set to 'vertical', vertical placement will be enabled * @param params URLSearchParams to modify */ private _applyPlacementOption; /** * Applies the sound option to the parameters if present * This will resolve any relative sound URLs to absolute URLs * @param params URLSearchParams to modify * @param location Current page location URL */ private _applySoundOption; /** * Applies the link option to the parameters if present * This will resolve any relative link URLs to absolute URLs * @param params URLSearchParams to modify * @param location Current page location URL */ private _applyLinkOption; /** * Creates the Android Intent URL for SceneViewer * @param params URLSearchParams containing all configuration * @param location Current page location URL * @returns The complete Intent URL */ private _createIntent; }