Skip to content

Commit

Permalink
1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-vblocks-ci committed Dec 10, 2024
1 parent 1019fda commit a20dcbc
Show file tree
Hide file tree
Showing 780 changed files with 27,235 additions and 2 deletions.
195 changes: 195 additions & 0 deletions android/src/main/java/com/twiliovoicereactnative/CommonConstants.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
package com.twiliovoicereactnative;

public class CommonConstants {
// React Native Voice SDK
public static final String ReactNativeVoiceSDK = "react-native";
public static final String ReactNativeVoiceSDKVer = "1.3.0";

// Scope names
public static final String ScopeVoice = "scopeVoice";
public static final String ScopeCall = "scopeCall";
public static final String ScopeCallMessage = "scopeCallMessage";
public static final String ScopeCallInvite = "scopeCallInvite";

// Voice events
// Common
public static final String VoiceEventError = "voiceEventError";
public static final String VoiceEventType = "type";

// Error
public static final String VoiceErrorKeyError = "error";
public static final String VoiceErrorKeyCode = "code";
public static final String VoiceErrorKeyMessage = "message";

// Registration
public static final String VoiceEventRegistered = "voiceEventRegistered";
public static final String VoiceEventUnregistered = "voiceEventUnregistered";

// Call Info
public static final String CallInfoUuid = "uuid";
public static final String CallInfoSid = "sid";
public static final String CallInfoFrom = "from";
public static final String CallInfoTo = "to";
public static final String CallInfoIsMuted = "isMuted";
public static final String CallInfoIsOnHold = "isOnHold";
public static final String CallInfoState = "state";
public static final String CallInfoInitialConnectedTimestamp = "initialConnectedTimestamp";

// Call States
public static final String CallStateConnected = "connected";
public static final String CallStateConnecting = "connecting";
public static final String CallStateDisconnected = "disconnected";
public static final String CallStateReconnecting = "reconnecting";
public static final String CallStateRinging = "ringing";

// Call Invite Info
public static final String CallInviteInfoUuid = "uuid";
public static final String CallInviteInfoCallSid = "callSid";
public static final String CallInviteInfoFrom = "from";
public static final String CallInviteInfoTo = "to";
public static final String CallInviteInfoCustomParameters = "customParameters";

// Cancelled Call Invite Info
public static final String CancelledCallInviteInfoUuid = "uuid";
public static final String CancelledCallInviteInfoCallSid = "callSid";
public static final String CancelledCallInviteInfoFrom = "from";
public static final String CancelledCallInviteInfoTo = "to";
public static final String CancelledCallInviteInfoCustomParameters = "customParameters";

// Incoming Call Invite event
public static final String VoiceEventTypeValueIncomingCallInvite = "voiceEventTypeValueIncomingCallInvite";

// Call Message
public static final String VoiceEventSid = "voiceEventSid";
public static final String CallMessage = "callMessage";
public static final String CallMessageContent = "content";
public static final String CallMessageContentType = "contentType";
public static final String CallMessageMessageType = "messageType";
public static final String JSEventKeyCallMessageInfo = "callMessage";

// Audio Devices Updated Event
public static final String VoiceEventAudioDevicesUpdated = "voiceEventAudioDevicesUpdated";

// Audio Device
public static final String AudioDeviceKeyUuid = "uuid";
public static final String AudioDeviceKeyName = "name";
public static final String AudioDeviceKeyType = "type";
public static final String AudioDeviceKeyAudioDevices = "audioDevices";
public static final String AudioDeviceKeySelectedDevice = "selectedDevice";
public static final String AudioDeviceKeyEarpiece = "earpiece";
public static final String AudioDeviceKeySpeaker = "speaker";
public static final String AudioDeviceKeyBluetooth = "bluetooth";

// CallInvite events
public static final String CallInviteEventKeyType = "type";
public static final String CallInviteEventTypeValueAccepted = "callInviteEventTypeValueCallInviteAccepted";
public static final String CallInviteEventTypeValueNotificationTapped = "callInviteEventTypeValueCallInviteNotificationTapped";
public static final String CallInviteEventTypeValueRejected = "callInviteEventTypeValueCallInviteRejected";
public static final String CallInviteEventTypeValueCancelled = "callInviteEventTypeValueCallInviteCancelled";
public static final String CallInviteEventKeyCallSid = "callSid";

// Call events
// State
public static final String CallEventConnected = "callEventConnected";
public static final String CallEventConnectFailure = "callEventConnectFailure";
public static final String CallEventDisconnected = "callEventDisconnected";
public static final String CallEventReconnecting = "callEventReconnecting";
public static final String CallEventReconnected = "callEventReconnected";
public static final String CallEventRinging = "callEventRinging";

// Quality warnings
public static final String CallEventQualityWarningsChanged = "callEventQualityWarningsChanged";
public static final String CallEventCurrentWarnings = "callEventCurrentWarnings";
public static final String CallEventPreviousWarnings = "callEventPreviousWarnings";

// Call message events
public static final String CallEventMessageFailure = "callEventMessageFailure";
public static final String CallEventMessageReceived = "callEventMessageReceived";
public static final String CallEventMessageSent = "callEventMessageSent";

// Call feedback score
public static final String CallFeedbackScoreNotReported = "callFeedbackScoreNotReported";
public static final String CallFeedbackScoreOne = "callFeedbackScoreOne";
public static final String CallFeedbackScoreTwo = "callFeedbackScoreTwo";
public static final String CallFeedbackScoreThree = "callFeedbackScoreThree";
public static final String CallFeedbackScoreFour = "callFeedbackScoreFour";
public static final String CallFeedbackScoreFive = "callFeedbackScoreFive";

// Call feedback issue
public static final String CallFeedbackIssueNotReported = "callFeedbackIssueNotReported";
public static final String CallFeedbackIssueDroppedCall = "callFeedbackIssueDroppedCall";
public static final String CallFeedbackIssueAudioLatency = "callFeedbackIssueAudioLatency";
public static final String CallFeedbackIssueOneWayAudio = "callFeedbackIssueOneWayAudio";
public static final String CallFeedbackIssueChoppyAudio = "callFeedbackIssueChoppyAudio";
public static final String CallFeedbackIssueNoisyCall = "callFeedbackIssueNoisyCall";
public static final String CallFeedbackIssueEcho = "callFeedbackIssueEcho";

// StatsReport
public static final String PeerConnectionId = "peerConnectionId";
public static final String LocalAudioTrackStats = "localAudioTrackStats";
public static final String RemoteAudioTrackStats = "remoteAudioTrackStats";
public static final String IceCandidatePairStats = "iceCandidatePairStats";
public static final String IceCandidateStats = "iceCandidateStats";
public static final String Codec = "codec";
public static final String PacketsLost = "packetsLost";
public static final String Ssrc = "ssrc";
public static final String TrackId = "trackId";
public static final String Timestamp = "timestamp";
public static final String BytesSent = "bytesSent";
public static final String PacketsSent = "packetsSent";
public static final String RoundTripTime = "roundTripTime";
public static final String AudioLevel = "audioLevel";
public static final String Jitter = "jitter";
public static final String BytesReceived = "bytesReceived";
public static final String Mos = "mos";
public static final String TransportId = "transportId";
public static final String LocalCandidateId = "localCandidateId";
public static final String RemoteCandidateId = "remoteCandidateId";
public static final String State = "state";
public static final String LocalCandidateIp = "localCandidateIp";
public static final String RemoteCandidateIp = "remoteCandidateIp";
public static final String Nominated = "nominated";
public static final String Writeable = "writeable";
public static final String Readable = "readable";
public static final String TotalRoundTripTime = "totalRoundTripTime";
public static final String CurrentRoundTripTime = "currentRoundTripTime";
public static final String AvailableOutgoingBitrate = "availableOutgoingBitrate";
public static final String AvailableIncomingBitrate = "availableIncomingBitrate";
public static final String RequestsReceived = "requestsReceived";
public static final String RequestsSent = "requestsSent";
public static final String ResponsesReceived = "responsesReceived";
public static final String ResponsesSent = "responsesSent";
public static final String RetransmissionsReceived = "retransmissionsReceived";
public static final String RetransmissionsSent = "retransmissionsSent";
public static final String ConsentRequestsReceived = "consentRequestsReceived";
public static final String ConsentRequestsSent = "consentRequestsSent";
public static final String ConsentResponsesReceived = "consentResponsesReceived";
public static final String ConsentResponsesSent = "consentResponsesSent";
public static final String ActiveCandidatePair = "activeCandidatePair";
public static final String RelayProtocol = "relayProtocol";
public static final String IsRemote = "isRemote";
public static final String Ip = "ip";
public static final String Port = "port";
public static final String Protocol = "protocol";
public static final String CandidateType = "candidateType";
public static final String Priority = "priority";
public static final String Url = "url";
public static final String Deleted = "deleted";
public static final String PacketsReceived = "packetsReceived";

// IceCandidatePairState
public static final String StateFailed = "stateFailed";
public static final String StateFrozen = "stateFrozen";
public static final String StateInProgress = "stateInProgress";
public static final String StateSucceeded = "stateSucceeded";
public static final String StateWaiting = "stateWaiting";
public static final String StateUnknown = "stateUnknown";

// iOS CallKit configuration
public static final String CallKitMaximumCallsPerCallGroup = "callKitMaximumCallsPerCallGroup";
public static final String CallKitMaximumCallGroups = "callKitMaximumCallGroups";
public static final String CallKitIncludesCallsInRecents = "callKitIncludesCallsInRecents";
public static final String CallKitSupportedHandleTypes = "callKitSupportedHandleTypes";
public static final String CallKitIconTemplateImageData = "callKitIconTemplateImageData";
public static final String CallKitRingtoneSound = "callKitRingtoneSound";
}
2 changes: 1 addition & 1 deletion constants/constants.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// React Native Voice SDK
ReactNativeVoiceSDK=react-native
ReactNativeVoiceSDKVer=1.3.0-dev
ReactNativeVoiceSDKVer=1.3.0

// Scope names
ScopeVoice=scopeVoice
Expand Down
12 changes: 12 additions & 0 deletions docs/api/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md)

## API Reference

## Packages

| Package | Description |
| --- | --- |
| [@twilio/voice-react-native-sdk](./voice-react-native-sdk.md) | Provides access to Twilio Programmable Voice for React Native applications running on iOS and Android devices. |

35 changes: 35 additions & 0 deletions docs/api/voice-react-native-sdk.audiodevice_class.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@twilio/voice-react-native-sdk](./voice-react-native-sdk.md) &gt; [AudioDevice](./voice-react-native-sdk.audiodevice_class.md)

## AudioDevice class

Describes audio devices as reported by the native layer and allows the native selection of the described audio device.

<b>Signature:</b>

```typescript
export declare class AudioDevice
```

## Remarks

To fetch a list of available audio devices and the currently selected audio device, see [Voice.getAudioDevices()](./voice-react-native-sdk.voice_class.getaudiodevices_method.md)<!-- -->.

- See also the [AudioDevice namespace](./voice-react-native-sdk.audiodevice_namespace.md) for types used by this class.

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `AudioDevice` class.

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [name](./voice-react-native-sdk.audiodevice_class.name_property.md) | | string | The name of the audio device. |
| [type](./voice-react-native-sdk.audiodevice_class.type_property.md) | | [AudioDevice.Type](./voice-react-native-sdk.audiodevice_namespace.type_enum.md) | The type of the audio device. |

## Methods

| Method | Modifiers | Description |
| --- | --- | --- |
| [select()](./voice-react-native-sdk.audiodevice_class.select_method.md) | | Calling this method will select this audio device as the active audio device. |

13 changes: 13 additions & 0 deletions docs/api/voice-react-native-sdk.audiodevice_class.name_property.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@twilio/voice-react-native-sdk](./voice-react-native-sdk.md) &gt; [AudioDevice](./voice-react-native-sdk.audiodevice_class.md) &gt; [name](./voice-react-native-sdk.audiodevice_class.name_property.md)

## AudioDevice.name property

The name of the audio device.

<b>Signature:</b>

```typescript
name: string;
```
19 changes: 19 additions & 0 deletions docs/api/voice-react-native-sdk.audiodevice_class.select_method.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@twilio/voice-react-native-sdk](./voice-react-native-sdk.md) &gt; [AudioDevice](./voice-react-native-sdk.audiodevice_class.md) &gt; [select](./voice-react-native-sdk.audiodevice_class.select_method.md)

## AudioDevice.select() method

Calling this method will select this audio device as the active audio device.

<b>Signature:</b>

```typescript
select(): Promise<void>;
```
<b>Returns:</b>

Promise&lt;void&gt;

A `Promise` that - Resolves with `void` when the audio device has been successfully selected as the active audio device. - Rejects if the audio device cannot be selected.

13 changes: 13 additions & 0 deletions docs/api/voice-react-native-sdk.audiodevice_class.type_property.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@twilio/voice-react-native-sdk](./voice-react-native-sdk.md) &gt; [AudioDevice](./voice-react-native-sdk.audiodevice_class.md) &gt; [type](./voice-react-native-sdk.audiodevice_class.type_property.md)

## AudioDevice.type property

The type of the audio device.

<b>Signature:</b>

```typescript
type: AudioDevice.Type;
```
24 changes: 24 additions & 0 deletions docs/api/voice-react-native-sdk.audiodevice_namespace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@twilio/voice-react-native-sdk](./voice-react-native-sdk.md) &gt; [AudioDevice](./voice-react-native-sdk.audiodevice_namespace.md)

## AudioDevice namespace

Contains interfaces and enumerations associated with audio devices.

<b>Signature:</b>

```typescript
export declare namespace AudioDevice
```
## Remarks
- See also the [AudioDevice class](./voice-react-native-sdk.audiodevice_class.md)<!-- -->.
## Enumerations
| Enumeration | Description |
| --- | --- |
| [Type](./voice-react-native-sdk.audiodevice_namespace.type_enum.md) | Audio device type enumeration. Describes all possible audio device types as reportable by the native layer. |
22 changes: 22 additions & 0 deletions docs/api/voice-react-native-sdk.audiodevice_namespace.type_enum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@twilio/voice-react-native-sdk](./voice-react-native-sdk.md) &gt; [AudioDevice](./voice-react-native-sdk.audiodevice_namespace.md) &gt; [Type](./voice-react-native-sdk.audiodevice_namespace.type_enum.md)

## AudioDevice.Type enum

Audio device type enumeration. Describes all possible audio device types as reportable by the native layer.

<b>Signature:</b>

```typescript
enum Type
```

## Enumeration Members

| Member | Value | Description |
| --- | --- | --- |
| Bluetooth | <code>&quot;bluetooth&quot;</code> | |
| Earpiece | <code>&quot;earpiece&quot;</code> | |
| Speaker | <code>&quot;speaker&quot;</code> | |

19 changes: 19 additions & 0 deletions docs/api/voice-react-native-sdk.call_class.disconnect_method.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@twilio/voice-react-native-sdk](./voice-react-native-sdk.md) &gt; [Call](./voice-react-native-sdk.call_class.md) &gt; [disconnect](./voice-react-native-sdk.call_class.disconnect_method.md)

## Call.disconnect() method

Disconnect this side of the call.

<b>Signature:</b>

```typescript
disconnect(): Promise<void>;
```
<b>Returns:</b>

Promise&lt;void&gt;

A `Promise` that - Resolves when the call has disconnected. - Rejects if the native layer cannot disconnect the call.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@twilio/voice-react-native-sdk](./voice-react-native-sdk.md) &gt; [Call](./voice-react-native-sdk.call_class.md) &gt; [getCustomParameters](./voice-react-native-sdk.call_class.getcustomparameters_method.md)

## Call.getCustomParameters() method

Return a `Record` of custom parameters given to this call.

<b>Signature:</b>

```typescript
getCustomParameters(): CustomParameters;
```
<b>Returns:</b>

[CustomParameters](./voice-react-native-sdk.customparameters_typealias.md)

- A `Record` of custom parameters.

Loading

0 comments on commit a20dcbc

Please sign in to comment.