UNPKG

react-native-qonversion

Version:

Qonversion provides full in-app purchases infrastructure, so you do not need to build your own server for receipt validation. Implement in-app subscriptions, validate user receipts, check subscription status, and provide access to your app features and co

37 lines 1.38 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const NoCodesConfig_1 = __importDefault(require("./NoCodesConfig")); class NoCodesConfigBuilder { projectKey; noCodesListener = undefined; constructor(projectKey) { this.projectKey = projectKey; } /** * Provide a listener to be notified about NoCodes events. * * Make sure you provide this listener for being up-to-date with the NoCodes events. * Else you can lose some important updates. Also, please, consider that this listener * should live for the whole lifetime of the application. * * @param noCodesListener listener to be called when NoCodes events occur. * @return builder instance for chain calls. */ setNoCodesListener(noCodesListener) { this.noCodesListener = noCodesListener; return this; } /** * Generate {@link NoCodesConfig} instance with all the provided configurations. * * @return the complete {@link NoCodesConfig} instance. */ build() { return new NoCodesConfig_1.default(this.projectKey, this.noCodesListener); } } exports.default = NoCodesConfigBuilder; //# sourceMappingURL=NoCodesConfigBuilder.js.map