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

26 lines (25 loc) 1.02 kB
import { NoCodesListener } from './dto/NoCodesListener'; import NoCodesConfig from './NoCodesConfig'; declare class NoCodesConfigBuilder { private readonly projectKey; private noCodesListener; constructor(projectKey: string); /** * 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: NoCodesListener): NoCodesConfigBuilder; /** * Generate {@link NoCodesConfig} instance with all the provided configurations. * * @return the complete {@link NoCodesConfig} instance. */ build(): NoCodesConfig; } export default NoCodesConfigBuilder;