call-screen
Version:
Capacitor plugin for full-screen call UI with Accept/Reject buttons, OneSignal integration, and cross-platform support
28 lines (27 loc) • 820 B
TypeScript
import { WebPlugin } from '@capacitor/core';
import type { CallScreenPlugin } from './definitions';
export declare class CallScreenWeb extends WebPlugin implements CallScreenPlugin {
private _isCallActive;
private audioContext;
private oscillator;
private callModal;
showCallScreen(options: {
username: string;
callId?: string;
roomName?: string;
}): Promise<void>;
handleIncomingCall(options: {
username: string;
callId?: string;
roomName?: string;
}): Promise<void>;
stopCall(): Promise<void>;
isCallActive(): Promise<{
isActive: boolean;
}>;
private createCallModal;
private removeCallModal;
private handleCallAction;
private playWebRingtone;
private stopWebRingtone;
}