@plattar/plattar-ar-adapter
Version:
Plattar AR Adapter for interfacing with Google & Apple WebAR
34 lines (33 loc) • 1.01 kB
TypeScript
import { LauncherAR } from "./launcher-ar";
export interface SceneGraphAROptions {
readonly id: string;
readonly sceneID: string;
readonly useARBanner: boolean;
}
/**
* Performs AR functionality related to Plattar Scenes
*/
export declare class SceneGraphAR extends LauncherAR {
private _analytics;
private _options;
private _ar;
constructor(options: SceneGraphAROptions);
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;
}