UNPKG

@plattar/plattar-ar-adapter

Version:

Plattar AR Adapter for interfacing with Google & Apple WebAR

24 lines (23 loc) 766 B
import { ARBanner } from "../viewers/ar-viewer"; export interface LauncherAROptions { anchor: "horizontal" | "vertical" | "vto" | "horizontal_vertical"; banner: ARBanner | null; } export declare abstract class LauncherAR { private readonly _opt; constructor(); abstract init(): Promise<LauncherAR>; abstract start(): void; abstract canQuicklook(): boolean; abstract canRealityViewer(): boolean; abstract canSceneViewer(): boolean; /** * Initialise and launch with a single function call. this is mostly for convenience. * Use .init() and .start() separately for fine-grained control */ launch(): Promise<void>; /** * AR Options used for launching AR */ get options(): LauncherAROptions; }