UNPKG

@plattar/plattar-ar-adapter

Version:

Plattar AR Adapter for interfacing with Google & Apple WebAR

34 lines (33 loc) 1.07 kB
import { LauncherAR } from "./launcher-ar"; import { DecodedConfiguratorState } from "../util/configurator-state"; export interface ConfiguratorAROptions { readonly state: DecodedConfiguratorState; readonly useARBanner: boolean; } /** * Performs AR functionality related to Plattar Scenes */ export declare class ConfiguratorAR extends LauncherAR { private _analytics; private _options; private _ar; constructor(options: ConfiguratorAROptions); private _SetupAnalytics; /** * Composes a Scene into an AR Model (remote operation) that can be used to launch * an AR File */ private _Compose; /** * Initialise the SceneAR instance. This returns a Promise that resolves * successfully if initialisation is successful, otherwise it will fail. * * filure can occur for a number of reasons but it generally means that AR * cannot be performed. */ init(): Promise<LauncherAR>; start(): void; canQuicklook(): boolean; canRealityViewer(): boolean; canSceneViewer(): boolean; }