이 페이지는 현재 영어로만 제공되며 한국어 버전은 곧 제공될 예정입니다. 기다려 주셔서 감사드립니다.

uni-app(Android & iOS)

This article describes how to use call status callbacks with the TUICallKit component.

Call State Monitoring

If your business requires monitoring call status, such as events that occur during a call like starting and ending (see TUICallEvent for details), please refer to the following code.
const TUICallEngine = uni.requireNativePlugin('TencentCloud-TUICallKit-TUICallEngine');

function handleError(res) {
console.log('onError', JSON.stringify(res);
}
TUICallEngine.addEventListener('onError', handleError);
TUICallEngine.removeEventListener('onError', handleError);