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

23 lines (22 loc) 906 B
import NoCodesApi from "./NoCodesApi"; import NoCodesConfig from "./NoCodesConfig"; export default class NoCodes { private constructor(); private static backingInstance; /** * Use this variable to get a current initialized instance of the NoCodes SDK. * Please, use the property only after calling {@link NoCodes.initialize}. * Otherwise, trying to access the variable will cause an exception. * * @return Current initialized instance of the NoCodes SDK. * @throws error if the instance has not been initialized */ static getSharedInstance(): NoCodesApi; /** * An entry point to use No-Codes SDK. Call to initialize No-Codes SDK with required configs. * * @param config a config that contains key SDK settings. * @return Initialized instance of the No-Codes SDK. */ static initialize(config: NoCodesConfig): NoCodesApi; }