tencent cloud

Tencent Real-Time Communication

Define

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-03-05 17:06:12

Introduction

This module defines common base types across platforms, providing unified error handling and callback mechanisms for API calls.

Features

Callback Mechanism:Provides unified completion callback closure types

Data Structures

CompletionClosure

Provides basic type definitions, including error handling structures, callback closure types, and reactive state management tools.
public typealias CompletionClosure = (Result<Void, ErrorInfo>) -> Void

ErrorInfo

Error information structure
Property
Type
Description
code
Int
Error code.
message
String
Error message description.

StatePublisher

State publisher

StatePropertySelector

State property selector protocol

StatePublisherSelector

State publisher selector

ListResultCompletionClosure

List result completion callback interface
Interface for asynchronous operation result callbacks that return paginated lists.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백