Browse SDKs · React Native
SDKsReact NativeEnterprise

Reject a call

Reject a call invitation with OpenIM React Native SDK.

Copy

After receiving a call invitation, call signalingReject() to reject it when the invitation will not be accepted.

await OpenIMSDK.signalingReject({
  opUserID: currentUserID,
  invitation,
});

opUserID is the user ID of the user rejecting the invitation. Use the complete invitation object provided by the OnReceiveNewInvitation event callback.

After the call returns, the rejection request is complete. The inviter receives the result through OnInviteeRejected; use invitation.roomID in its callback to identify the call. For event parameters and listeners, see Handle call events.