Skip to content
This repository was archived by the owner on May 26, 2019. It is now read-only.

Conversation

@aarkalyk
Copy link
Contributor

@aarkalyk aarkalyk commented Mar 15, 2018

Method for checking if there are any active calls on the device.
Pretty convenient to use with the async/await syntax.

async () => {
   const isBusy = await RNCallKit.checkIfBusy();
   if (isBusy) {
      // handle accordingly 
   }
}

@aarkalyk
Copy link
Contributor Author

Hey, @ianlin ! Can you, please, review this one?

index.js Outdated
_RNCallKit.endAllCalls();
}

static checkIfBusy = _RNCallKit.checkIfBusy;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Android might crash here as we do not check what the platform is like other functions.

@ianlin
Copy link
Member

ianlin commented Apr 19, 2018

Hi @aarkalyk can you please have a look on my review? Cheers.

@aarkalyk aarkalyk force-pushed the feature/check-if-busy-method branch from 6e6dd73 to 2062113 Compare April 19, 2018 07:54
@aarkalyk
Copy link
Contributor Author

Hey, @ianlin ! Thanks for the feedback! Can you please take one more look at the PR?:)

@ianlin ianlin merged commit 41b3147 into react-native-webrtc:master Apr 19, 2018
@ianlin
Copy link
Member

ianlin commented Apr 19, 2018

Thanks!

ianlin added a commit that referenced this pull request May 2, 2018
c09fb17 Method for checking speaker status (#41)  (@arkalyk Akash 2018-05-02 17:24:55 +0200)
41b3147 Feature / Check if phone is busy  (#39)  (@arkalyk Akash 2018-04-19 11:03:00 +0200)
c15c147 Feature/method and callback for mic toggle (#40)  (@arkalyk Akash 2018-04-19 08:34:47 +0200)
7eee28b README updated.  (@arkalyk AKASH 2018-03-14 12:08:40 +0100)
9c74590 README updated.  (@arkalyk AKASH 2018-03-14 11:57:16 +0100)
7fbcf0e moved displayIncomingCall callback moved to addEventListener.  (@arkalyk AKASH 2018-03-14 11:17:08 +0100)
786d28a README updated.  (@arkalyk AKASH 2018-03-05 08:21:58 +0100)
a3a4760 minor fix.  (@arkalyk AKASH 2018-03-05 07:53:29 +0100)
887580d displayIncomingCall callback added.  (@arkalyk AKASH 2018-03-02 14:47:56 +0100)
4211274 README.md updated.  (@arkalyk AKASH 2018-03-02 15:10:23 +0100)
e29ac6d contactIdentifier added to startCall action.  (@arkalyk AKASH 2018-02-14 20:53:32 +0100)
@aarkalyk aarkalyk deleted the feature/check-if-busy-method branch July 7, 2018 11:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants