@twilio/voice-react-native-sdk
Version:
Twilio Voice React Native SDK
32 lines (26 loc) • 974 B
text/typescript
import type { Constants } from '../constants';
import type { NativeAudioDevicesUpdatedEvent } from './AudioDevice';
import type { NativeCallInviteInfo } from './CallInvite';
import type { NativeErrorEvent } from './Error';
export interface NativeRegisteredEvent {
type: Constants.VoiceEventRegistered;
}
export interface NativeUnregisteredEvent {
type: Constants.VoiceEventUnregistered;
}
export interface NativeCallInviteIncomingEvent {
[Constants.VoiceEventType]: Constants.VoiceEventTypeValueIncomingCallInvite;
callInvite: NativeCallInviteInfo;
}
export type NativeVoiceEvent =
| NativeAudioDevicesUpdatedEvent
| NativeCallInviteIncomingEvent
| NativeErrorEvent
| NativeRegisteredEvent
| NativeUnregisteredEvent;
export type NativeVoiceEventType =
| Constants.VoiceEventAudioDevicesUpdated
| Constants.VoiceEventTypeValueIncomingCallInvite
| Constants.VoiceEventError
| Constants.VoiceEventRegistered
| Constants.VoiceEventUnregistered;