Skip to main content
This page lists the types the SDK exposes publicly. All field names are given as Swift property names.

Request parameters

MeetingCreateReq

Parameters for creating / updating a meeting. To construct:

MeetingEnterReq

Parameters for entering a meeting. To construct:

PageParam

Layout and recording parameters

McuStartReq, LayoutData, Watermark, Tag, Cell, DivList, and Attachment all provide initializers whose optional parameters have default values; they’re also Codable, so you can decode them from JSON delivered by your backend with JSONDecoder. For the mapping between fields and JSON keys, see Recording and composite layout.

Meeting and member info

RoomInfo

Room info of the current meeting, returned by getRoomInfo().

MeetingUserInfo

In-meeting member info, returned by getUserInfo(_:) / getUsersInfo() / getUsersInfoList().

MeetingInfo

Meeting details, returned by detailRoom(...), attendeeRoom(...), and attendedRoom(...). entryMutePolicy and content are available since 1.5.0. nil means the backend didn’t return the field; when updating the meeting, don’t backfill it with a default value, or you’ll overwrite the backend’s existing setting.

ParticipantInfo

Attendance record, returned by roomParticipant(...).

OnlineMemberInfo

An online member, returned by adminListOnlineMember(...): userId, nickname, deviceType, joinAt.

NoEnterUserInfo

An invitee who hasn’t entered the meeting, returned by meetNotEnter(): id, nickname, mobile, avatar, role, relUid.

WaitingRoomUserInfo

A member in the waiting room, returned by adminWaitingRoomUsers(): userId, name, avatar, at.

SubMeetingInfo / SubMeetingUser

Sub-meeting info, returned by adminSubMeetingList(...).

AgentInfo

A device that can be invited, returned by agentList(...). connParams, connSubjects, and the public initializer AgentInfo(id:name:type:status:contact:remark:connParams:) (remark and connParams have default values) are available since 1.5.0. GB28181 devices must be invited as “device number:channel number”; passing contact directly is rejected by the backend. The SDK only parses the channel table and doesn’t expand it for you. Typically, list one row per GB28181 channel:
Except for type, missing fields decode to empty values, so bad data from one device no longer makes the whole device list fail to decode.

SignInfo / SignDetailInfo

Sign-in activities and sign-in details.

McuRecordConfig / McuRecordDetail

MeetingToken

The parsed contents of the login token. You usually don’t need it—the token is issued by your backend, and you just pass it to login(token:). If you need to check on the client in advance whether the token has expired, you can:

Pagination

PageResult

MetaRes: totalCount, pageCount, currentPage, perPage.

Event data types

Connection and members

Room state

Messages

Host commands and raise hand

Waiting room and sub-meetings

Sign-in, roll call, and devices

Out-of-meeting messages

Data for the business events (call, reminder, release from the waiting room, sub-meeting help request) consists of two parts: base and content. The connection and raw message events carry their fields directly.

Enums

TrackDesc

Role

MicState / CameraState

ShareType

HandupType

UserHandupStep

ChatMsgType

MeetingType

MeetingMode

MeetingStatus

AttendType

EndType

EntryMutePolicy

MeetingStreamVendor

ook has been retired along with the server (2026-08) and is kept only for compatibility with existing deployments; don’t use it for new integrations. If you’re not sure which one to use, don’t pass it, and let the server decide based on the deployment configuration.

UserType

McuTaskType

McuTaskStatus

The values match the server’s task_status. The raw values in 1.4.0 and earlier were wrong (exception = 2, normal = 3) and are corrected as of 1.4.1; see the changelog.

LayoutType

AgentType

AgentStatus

Values match the server; any other value from the backend decodes to .unknown. The definition in 1.4.1 and earlier was wrong (idle = 1 idle, busy = 2 busy, offline = 3 offline), and the whole device list failed to decode when the backend sent status = 0. Fixed in 1.5.0:
  • idle and busy remain as deprecated aliases for .online and .offline respectively, so existing code still compiles
  • The raw value of offline changed from 3 to 2: check any code that compares rawValue numerically or has persisted raw values

PresignedPutObjectType


Pre-call network check

Available since 1.11.0, returned by networkCheck. The meeting layer doesn’t expose SRTC, so it defines its own MeetingNetworkCheck* types that map one-to-one to SRTC’s NetworkCheck*, with only the extra meetingApi subcheck on the server item. All of them are Codable, so you can encode them with JSONEncoder and report or log them directly.

MeetingNetworkCheckResult

There is also item(_ id: MeetingNetworkCheckItemId) -> MeetingNetworkCheckItem? to get an item by id.

MeetingNetworkCheckItem

MeetingNetworkCheckData

Each item fills in only its own fields; the rest are nil and omitted when encoded.

MeetingNetworkCheckSubCheck

Reason codes added by the meeting layer:

Types from SRTC

The following types are defined in the underlying SRTC module and require import SRTC to use: LogLevel, CameraPreset, MicPreset, ScreenPreset, DeviceInfo, DisconnectReason, ImDisconnectReason, AnyCodable, SRTCVideoView, SRTCVideoRenderer, ScreenCaptureSources, DisplaySource, WindowSource, LocalCameraTrack, LocalScreenTrack, RemoteVideoTrack, Track, SRTCBroadcastPicker. NativeVideoView is an alias SMeeting defines for the render view; its actual type is SRTCVideoRenderer.

Audio routing (iOS)

For why there are only two switchable states, see Audio routing.

Call quality

For value ranges and usage of the fields, see SRTC · Call quality and active speakers.

Receive stream status

Delivered by meeting(_:didChangeReceiveStreamStatus:), it determines per track whether a video track is still producing frames, which is a different matter from the quality tier of the whole connection; see Events.