tencent cloud

Tencent Real-Time Communication

소식 및 공지 사항
제품 업데이트
Tencent Cloud 오디오/비디오 단말 SDK 재생 업그레이드 및 권한 부여 인증 추가
TRTC 월간 구독 패키지 출시 관련 안내
제품 소개
제품 개요
기본 개념
제품 기능
제품 장점
응용 시나리오
성능 데이터
구매 가이드
Billing Overview
무료 시간 안내
Monthly subscription
Pay-as-you-go
TRTC Overdue and Suspension Policy
과금 FAQ
Refund Instructions
신규 사용자 가이드
Demo 체험
Call
개요(TUICallKit)
Activate the Service
Run Demo
빠른 통합(TUICallKit)
오프라인 푸시
Conversational Chat
온클라우드 녹화(TUICallKit)
AI Noise Reduction
UI 사용자 정의
Calls integration to Chat
Additional Features
No UI Integration
Server APIs
Client APIs
Solution
ErrorCode
릴리스 노트
FAQs
라이브 스트리밍
Billing of Video Live Component
Overview
Activating the Service (TUILiveKit)
Demo 실행
No UI Integration
UI Customization
Live Broadcast Monitoring
Video Live Streaming
Voice Chat Room
Advanced Features
Client APIs
Server APIs
Error Codes
Release Notes
FAQs
RTC Engine
Activate Service
SDK 다운로드
API 코드 예시
Usage Guidelines
API 클라이언트 API
고급 기능
RTC RESTFUL API
History
Introduction
API Category
Room Management APIs
Stream mixing and relay APIs
On-cloud recording APIs
Data Monitoring APIs
Pull stream Relay Related interface
Web Record APIs
AI Service APIs
Cloud Slicing APIs
Cloud Moderation APIs
Making API Requests
Call Quality Monitoring APIs
Usage Statistics APIs
Data Types
Appendix
Error Codes
콘솔 가이드
애플리케이션 관리
사용량 통계
모니터링 대시보드
개발 보조
Solution
Real-Time Chorus
FAQs
과금 개요
기능 관련
UserSig 관련
방화벽 제한 처리
설치 패키지 용량 축소 관련 질문
Andriod 및 iOS 관련
Web 관련
Flutter 관련
Electron 관련
TRTCCalling Web 관련
멀티미디어 품질 관련
기타 질문
Protocols and Policies
컴플라이언스 인증
보안 백서
정보 보안에 관한 참고 사항
Service Level Agreement
Apple Privacy Policy: PrivacyInfo.xcprivacy
TRTC 정책
개인 정보 보호 정책
데이터 처리 및 보안 계약
용어집
DokumentasiTencent Real-Time Communication

TUILiveGiftManager

Mode fokus
Ukuran font
Terakhir diperbarui: 2025-07-18 14:50:44
Copyright (c) 2025 Tencent. All rights reserved.
Module: TUILiveGiftManager @ TUIKitEngine
Function: Live-Gift APIs

TUILiveGiftManager

TUILiveGiftObserver

FuncList
DESC
Callback for gift count changed.
Callback for receive gift message.
Callback for receive likes message.

TUILiveGiftManager

FuncList
DESC
Add event callback
Remove event callback
Request get gift category list.
send gift to room.
send like to room.
Request get gift count by anchor.
Request get likes count

StructType

FuncList
DESC
Gift information.
Gift Category Information

onGiftCountChanged:totalGiftsSent:totalGiftCoins:totalUniqueGiftSenders:

onGiftCountChanged:totalGiftsSent:totalGiftCoins:totalUniqueGiftSenders:
- (void)onGiftCountChanged:
(NSString *)roomId
totalGiftsSent:
(NSUInteger)totalGiftsSent
totalGiftCoins:
(NSUInteger)totalGiftCoins
totalUniqueGiftSenders:
(NSUInteger)totalUniqueGiftSenders

Callback for gift count changed.

Param
DESC
roomId
the room id.
totalGiftCoins
the gift total coins.
totalGiftsSent
the gift total count.
totalUniqueGiftSenders
the gift sender count.

onReceiveGiftMessage:giftInfo:giftCount:sender:

onReceiveGiftMessage:giftInfo:giftCount:sender:
- (void)onReceiveGiftMessage:
(NSString *)roomId
giftInfo:
(TUIGiftInfo *)giftInfo
giftCount:
(NSUInteger)giftCount
sender:
(TUIUserInfo *)sender

Callback for receive gift message.

Param
DESC
giftCount
the gift count.
giftInfo
the gift info.
roomId
the room id.
sender
the gift sender user info.

onReceiveLikesMessage:totalLikesReceived:sender:

onReceiveLikesMessage:totalLikesReceived:sender:
- (void)onReceiveLikesMessage:
(NSString *)roomId
totalLikesReceived:
(NSUInteger)totalLikesReceived
sender:
(TUIUserInfo *)sender

Callback for receive likes message.

Param
DESC
roomId
the room id.
sender
the gift sender user info.
totalLikesReceived
the likes total count.

addObserver:

addObserver:
- (void)addObserver:
(id<TUILiveGiftObserver>)observer

Add event callback

Param
DESC
observer
The instance being listened to.

removeObserver:

removeObserver:
- (void)removeObserver:
(id<TUILiveGiftObserver>)observer

Remove event callback

Param
DESC
observer
The instance being listened to.

getGiftList:onSuccess:onError:

getGiftList:onSuccess:onError:
- (void)getGiftList:
(NSString *)roomId
onSuccess:
(TUIGetGiftListBlock)onSuccess
onError:
(TUIErrorBlock)onError

Request get gift category list.

Param
DESC
roomId
current entered room id.

sendGift:giftId:count:onSuccess:onError:

sendGift:giftId:count:onSuccess:onError:
- (void)sendGift:
(NSString *)roomId
giftId:
(NSString *)giftId
count:
(NSUInteger)count
onSuccess:
(TUISuccessBlock)onSuccess
onError:
(TUIErrorBlock)onError

send gift to room.

Param
DESC
count
gift count.
giftId
gift id.
roomId
current entered room id.

sendLike:count:onSuccess:onError:

sendLike:count:onSuccess:onError:
- (void)sendLike:
(NSString *)roomId
count:
(NSUInteger)count
onSuccess:
(TUISuccessBlock)onSuccess
onError:
(TUIErrorBlock)onError

send like to room.

Param
DESC
count
like count.
roomId
current entered room id.

getGiftCountByAnchor:onSuccess:onError:

getGiftCountByAnchor:onSuccess:onError:
- (void)getGiftCountByAnchor:
(NSString *)roomId
onSuccess:
(TUIGetGiftCountBlock)onSuccess
onError:
(TUIErrorBlock)onError

Request get gift count by anchor.

Param
DESC
roomId
current entered room id.

getLikesCount:onSuccess:onError:

getLikesCount:onSuccess:onError:
- (void)getLikesCount:
(NSString *)roomId
onSuccess:
(TUIGetLikesCountBlock)onSuccess
onError:
(TUIErrorBlock)onError

Request get likes count

Param
DESC
roomId
current entered room id.

TUIGiftInfo

TUIGiftInfo

Gift information.

EnumType
DESC
coins
The gift coins.
desc
The gift description.
extensionInfo
The gift extension info.
giftId
The gift id.
iconUrl
The gift icon url.
level
The gift level.
name
The gift name.
resourceUrl
The gift resource url.

TUIGiftCategory

TUIGiftCategory

Gift Category Information

EnumType
DESC
categoryId
The category id of the gift.
desc
The description of the gift.
extensionInfo
The extension info of the gift.
giftList
The gift info list of the gift.
name
The name of the gift.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan