UNPKG

easemob-chat-uikit

Version:

![Static Badge](https://img.shields.io/badge/platform-React-green) ![Static Badge](https://img.shields.io/badge/language-typescript-green) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/easemob/Easemob-UIKit-web) ![GitHub last c

33 lines (32 loc) 1.16 kB
import React from 'react'; import type { CallControlsIconMap } from '../types/index'; export interface CallControlsProps { className?: string; style?: React.CSSProperties; callMode?: 'video' | 'audio' | 'group'; isPreview?: boolean; isCaller?: boolean; muted?: boolean; cameraEnabled?: boolean; speakerEnabled?: boolean; screenSharing?: boolean; defaultMuted?: boolean; defaultCameraEnabled?: boolean; defaultSpeakerEnabled?: boolean; defaultScreenSharing?: boolean; onMuteToggle?: (muted: boolean) => void; onCameraToggle?: (enabled: boolean) => void; onSpeakerToggle?: (enabled: boolean) => void; onScreenShareToggle?: (sharing: boolean) => void; onHangup?: () => void; onPreviewAccept?: () => void; onPreviewReject?: () => void; managed?: boolean; isGroupCall?: boolean; hasParticipants?: boolean; isConnected?: boolean; customIcons?: CallControlsIconMap; iconRenderer?: (iconType: string, defaultIcon: React.ReactElement, context?: any) => React.ReactElement; } declare const CallControls: React.FC<CallControlsProps>; export default CallControls;