@@ -84,7 +84,7 @@ RNCallKeep.setActive(true);
84
84
```
85
85
86
86
- ` active ` : boolean
87
- - Tell whenever the app is ready or not
87
+ - Tell whenever the app is ready or not
88
88
89
89
### displayIncomingCall
90
90
@@ -95,11 +95,11 @@ RNCallKeep.displayIncomingCall(uuid, handle);
95
95
````
96
96
97
97
- ` uuid ` : string
98
- - An ` uuid ` that should be stored and re-used for ` stopCall ` .
98
+ - An ` uuid ` that should be stored and re-used for ` stopCall ` .
99
99
- ` handle ` : string
100
- - Phone number of the caller
100
+ - Phone number of the caller
101
101
- ` localizedCallerName ` : string (optional, iOS only)
102
- - Name of the caller to be displayed on the native UI
102
+ - Name of the caller to be displayed on the native UI
103
103
- ` handleType ` : string (optional, iOS only)
104
104
- ` generic `
105
105
- ` number ` (default)
@@ -119,9 +119,9 @@ RNCallKeep.startCall(uuid, number);
119
119
```
120
120
121
121
- _ uuid_ : string
122
- - An ` uuid ` that should be stored and re-used for ` stopCall ` .
122
+ - An ` uuid ` that should be stored and re-used for ` stopCall ` .
123
123
- ` handle ` : string
124
- - Phone number of the callee
124
+ - Phone number of the callee
125
125
- ` handleType ` : string (optional)
126
126
- ` generic `
127
127
- ` number ` (default)
@@ -139,7 +139,7 @@ RNCallKeep.endCall(uuid);
139
139
```
140
140
141
141
- ` uuid ` : string
142
- - The ` uuid ` used for ` startCall ` or ` displayIncomingCall `
142
+ - The ` uuid ` used for ` startCall ` or ` displayIncomingCall `
143
143
144
144
145
145
### setMutedCall
@@ -152,7 +152,7 @@ RNCallKeep.setMutedCall(uuid, true);
152
152
```
153
153
154
154
- ` uuid ` : string
155
- - uuid of the current call.
155
+ - uuid of the current call.
156
156
- ` muted ` : boolean
157
157
158
158
### checkIfBusy
@@ -173,6 +173,29 @@ _This feature is available only on iOs._
173
173
RNCallKeep .checkSpeaker ();
174
174
```
175
175
176
+ ### supportConnectionService (async)
177
+
178
+ Tells if ` ConnectionService ` is available on the device (returns a boolean).
179
+
180
+ _ This feature is available only on Android._
181
+
182
+ ``` js
183
+ RNCallKeep .supportConnectionService ();
184
+ ```
185
+
186
+ ### hasPhoneAccount (async)
187
+
188
+ Checks if the user has enabled the [ phone account] ( https://developer.android.com/reference/android/telecom/PhoneAccount ) for your application.
189
+ A phone account must be enable to be able to display UI screen on incoming call and make outgoing calls from native Contact application.
190
+
191
+ Returns a promise of a boolean.
192
+
193
+ _ This feature is available only on Android._
194
+
195
+ ``` js
196
+ await RNCallKeep .hasPhoneAccount ();
197
+ ```
198
+
176
199
## Events
177
200
178
201
### didReceiveStartCallAction
@@ -250,6 +273,17 @@ A call was muted by the system or the user:
250
273
``` js
251
274
RNCallKeep .addEventListener (' didPerformSetMutedCallAction' , ({ muted }) => {
252
275
276
+ });
277
+
278
+ ```
279
+ ### - didPerformDTMFAction
280
+ _ This feature is available only on Android for now._
281
+
282
+ Used type a number on his dialer
283
+
284
+ ``` js
285
+ RNCallKeep .addEventListener (' didPerformDTMFAction' , ({ dtmf }) => {
286
+
253
287
});
254
288
```
255
289
0 commit comments