@plattar/plattar-ar-adapter
Version:
Plattar AR Adapter for interfacing with Google & Apple WebAR
32 lines (31 loc) • 963 B
TypeScript
import { LauncherAR } from "./launcher-ar";
export interface ModelAROptions {
readonly modelID: string;
readonly useARBanner: boolean;
}
/**
* Performs AT Functionality using Plattar FileModel types
*/
export declare class ModelAR extends LauncherAR {
private _analytics;
private readonly _options;
private _ar;
constructor(options: ModelAROptions);
get modelID(): string;
private _SetupAnalytics;
/**
* Initialise the ModelAR 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;
}