UNPKG

cordova-plugin-qonversion

Version:
27 lines (26 loc) 1.03 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Automations = void 0; const AutomationsInternal_1 = __importDefault(require("./AutomationsInternal")); class Automations { constructor() { } static backingInstance; /** * Use this variable to get a current initialized instance of the Qonversion Automations. * Please, use Automations only after calling {@link Qonversion.initialize}. * Otherwise, trying to access the variable will cause an error. * * @return Current initialized instance of the Qonversion Automations. * @throws error if Qonversion has not been initialized. */ static getSharedInstance() { if (!this.backingInstance) { this.backingInstance = new AutomationsInternal_1.default(); } return this.backingInstance; } } exports.Automations = Automations;