@twilio/voice-react-native-sdk
Version:
Twilio Voice React Native SDK
17 lines (16 loc) • 969 B
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 declare type NativeVoiceEvent = NativeAudioDevicesUpdatedEvent | NativeCallInviteIncomingEvent | NativeErrorEvent | NativeRegisteredEvent | NativeUnregisteredEvent;
export declare type NativeVoiceEventType = Constants.VoiceEventAudioDevicesUpdated | Constants.VoiceEventTypeValueIncomingCallInvite | Constants.VoiceEventError | Constants.VoiceEventRegistered | Constants.VoiceEventUnregistered;