Skip to content

Commit 345b5a8

Browse files
committed
Add a method to mark current call as active
1 parent 5cb2162 commit 345b5a8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,16 @@ public void setActive(Boolean active) {
182182
VoiceConnectionService.setActive(active);
183183
}
184184

185+
@ReactMethod
186+
public void setCurrentCallActive() {
187+
Connection conn = VoiceConnectionService.getConnection();
188+
if (conn == null) {
189+
return;
190+
}
191+
192+
conn.setActive();
193+
}
194+
185195
@ReactMethod
186196
public void openPhoneAccounts() {
187197
if (!isAvailable()) {

0 commit comments

Comments
 (0)