UNPKG

@plattar/plattar-ar-adapter

Version:

Plattar AR Adapter for interfacing with Google & Apple WebAR

27 lines (26 loc) 667 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LauncherAR = void 0; class LauncherAR { constructor() { this._opt = { anchor: "horizontal_vertical", banner: null }; } /** * Initialise and launch with a single function call. this is mostly for convenience. * Use .init() and .start() separately for fine-grained control */ async launch() { const value = await this.init(); return value.start(); } /** * AR Options used for launching AR */ get options() { return this._opt; } } exports.LauncherAR = LauncherAR;