RtmCallEventListener

最近更新时间:2022-09-20 05:17:40

Public 成员函数
voidonLocalInvitationReceivedByPeer (LocalInvitation localInvitation)
voidonLocalInvitationAccepted (LocalInvitation localInvitation, String response)
voidonLocalInvitationRefused (LocalInvitation localInvitation, String response)
voidonLocalInvitationCanceled (LocalInvitation localInvitation)
voidonLocalInvitationFailure (LocalInvitation localInvitation, int errorCode)
voidonRemoteInvitationReceived (RemoteInvitation remoteInvitation)
voidonRemoteInvitationAccepted (RemoteInvitation remoteInvitation)
voidonRemoteInvitationRefused (RemoteInvitation remoteInvitation)
voidonRemoteInvitationCanceled (RemoteInvitation remoteInvitation)
voidonRemoteInvitationFailure (RemoteInvitation remoteInvitation, int errorCode)

详细描述

RtmCallManager 的监听器。

成员函数说明

onLocalInvitationAccepted()

voidorg.ar.rtm.RtmCallEventListener.onLocalInvitationAccepted(LocalInvitation localInvitation,String response)  

返回给主叫:被叫已接受呼叫邀请。

参数描述
localInvitation一个 LocalInvitation 对象
responseLocalInvitation的响应内容

onLocalInvitationCanceled()

void org.ar.rtm.RtmCallEventListener.onLocalInvitationCanceled(LocalInvitation localInvitation)

返回给主叫:呼叫邀请已被取消。

参数描述
localInvitation一个 LocalInvitation 对象

onLocalInvitationFailure()

void org.ar.rtm.RtmCallEventListener.onLocalInvitationFailure(LocalInvitation localInvitation,int errorCode)        

返回给主叫:呼叫邀请进程失败。

参数描述
localInvitation一个 LocalInvitation 对象
errorCode错误码。详见 LocalInvitationError

onLocalInvitationReceivedByPeer()

void org.ar.rtm.RtmCallEventListener.onLocalInvitationReceivedByPeer(LocalInvitation localInvitation)   

返回给主叫:被叫已收到呼叫邀请。

参数描述
localInvitation一个 LocalInvitation 对象

onLocalInvitationRefused()

void org.ar.rtm.RtmCallEventListener.onLocalInvitationRefused   (   LocalInvitation localInvitation,String response)    

返回给主叫:被叫已拒绝呼叫邀请。

参数描述
localInvitation一个 LocalInvitation 对象
responseLocalInvitation的响应内容

onRemoteInvitationAccepted()

void org.ar.rtm.RtmCallEventListener.onRemoteInvitationAccepted (RemoteInvitation remoteInvitation) 

返回给被叫:接受呼叫邀请成功。

参数描述
remoteInvitation一个RemoteInvitation对象

onRemoteInvitationCanceled()

void org.ar.rtm.RtmCallEventListener.onRemoteInvitationCanceled(RemoteInvitation remoteInvitation   )   

返回给被叫:主叫已取消呼叫邀请。

参数描述
remoteInvitation一个RemoteInvitation对象

onRemoteInvitationFailure()

void org.ar.rtm.RtmCallEventListener.onRemoteInvitationFailure  (RemoteInvitation   remoteInvitation,int errorCode) 

返回给被叫:来自主叫的呼叫邀请进程失败。

参数描述
remoteInvitation一个RemoteInvitation对象
errorCodeerrorCode错误码。详见 RemoteInvitationError

onRemoteInvitationReceived()

void org.ar.rtm.RtmCallEventListener.onRemoteInvitationReceived(RemoteInvitation remoteInvitation)  

返回给被叫:收到一个呼叫邀请。

参数描述
remoteInvitation一个RemoteInvitation对象

onRemoteInvitationRefused()

void org.ar.rtm.RtmCallEventListener.onRemoteInvitationRefused(RemoteInvitation remoteInvitation)

返回给被叫:拒绝呼叫邀请成功。

参数描述
remoteInvitation一个RemoteInvitation对象