UNPKG

@revenuecat/purchases-capacitor-ui

Version:
39 lines (38 loc) 1.49 kB
import { WebPlugin } from '@capacitor/core'; import type { PluginListenerHandle } from '@capacitor/core'; import type { PaywallResult, PresentPaywallIfNeededOptions, PresentPaywallOptions, RevenueCatUIPlugin } from './definitions'; export declare class RevenueCatUIWeb extends WebPlugin implements RevenueCatUIPlugin { private shouldMockWebResults; private webNotSupportedErrorMessage; constructor(); setMockWebResults(options: { shouldMockWebResults: boolean; }): Promise<void>; presentPaywall(options?: PresentPaywallOptions): Promise<PaywallResult>; presentPaywallIfNeeded(options: PresentPaywallIfNeededOptions): Promise<PaywallResult>; presentCustomerCenter(): Promise<void>; resumePurchaseInitiated(_options: { requestId: string; shouldProceed: boolean; }): Promise<void>; resumePurchaseLogicPurchase(_options: { requestId: string; result: string; error?: { code?: string; message?: string; }; }): Promise<void>; resumePurchaseLogicRestore(_options: { requestId: string; result: string; error?: { code?: string; message?: string; }; }): Promise<void>; addListener(eventName: string, listener: (...args: any[]) => void): Promise<PluginListenerHandle>; removeAllListeners(): Promise<void>; private mockNonReturningFunctionIfEnabled; private mockReturningFunctionIfEnabled; }