UNPKG

@plattar/plattar-ar-adapter

Version:

Plattar AR Adapter for interfacing with Google & Apple WebAR

33 lines (32 loc) 1.02 kB
import { LauncherAR } from "./launcher-ar"; export interface RawAROptions { readonly modelLocation: string; readonly sceneID: string | null; readonly useARBanner: boolean; } /** * Allows launching AR Experiences provided a single remote 3D Model file */ export declare class RawAR extends LauncherAR { private readonly _options; private _ar; private _analytics; constructor(options: RawAROptions); get modelLocation(): string; private _SetupAnalytics; /** * Initialise the RawAR 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>; /** * Launches the internal AR instance using an appropriate version of AR Viewers */ start(): void; canQuicklook(): boolean; canRealityViewer(): boolean; canSceneViewer(): boolean; }