@revenuecat/purchases-capacitor-ui
Version:
UI components for RevenueCat Capacitor SDK
39 lines (38 loc) • 1.49 kB
TypeScript
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;
}