This topic describes the details of the API operations in the iOS SDK.
API overview
Older SDK versions contain deprecated parameters and methods. Upgrade the software development kit (SDK) to the latest version. For more information, see iOS usage guide.
Class/Protocol | API | Description |
ARTCAICallEngineInterface Engine interface definition | Gets the User ID of the current call. | |
Indicates whether a call is in progress. | ||
Gets the information about the current agent. | ||
Gets the current state of the agent. | ||
Sets and gets callback events. | ||
Starts a call. | ||
Starts a call using call configurations. | ||
Hangs up a call. | ||
Audio configurations. This includes encoding settings (such as sample rate, the number of sound channels, and bitrate) and scenario settings (such as default and music scenarios). | ||
Video configurations. | ||
Sets the rendering view and configurations for the local camera. | ||
Sets the rendering view configurations for the agent. This is required when the agent has image rendering. This operation is valid only for AvatarAgent and VideoAgent. | ||
Interrupts the agent's speech. | ||
Enables or disables smart interruption. | ||
Switches the voice. | ||
Enables or disables the speaker. | ||
Enables or disables push-to-talk mode. | ||
In push-to-talk mode, starts speaking. | ||
In push-to-talk mode, finishes speaking. | ||
In push-to-talk mode, cancels the current speech. | ||
Mutes or unmutes the microphone. | ||
Stops or resumes the playback of the agent's audio stream. | ||
Parameter settings for visual understanding calls. | ||
Disables or enables the camera. | ||
Switches between the front and rear cameras. | ||
Parses shared agent information. | ||
Starts a shared agent call. | ||
Gets the RTC engine. | ||
Sends a text message to the agent. | ||
Sends a custom message to the server. This must be called after the call is connected. | ||
Updates the system prompt for the LLM. This must be called after the call is connected. | ||
Updates Model Studio application center parameters. | ||
Updates the VCR configuration. | ||
For a visual understanding agent, starts custom frame capture. After starting, you cannot talk to the agent through voice. This must be called after the call is connected. | ||
For a visual understanding agent, ends custom frame capture. This must be called after the call is connected. | ||
Releases resources. | ||
ARTCAICallEngineDelegate Engine callback events | An error occurred. | |
The call agent has started. | ||
The call started. | ||
The call ended. | ||
Indicates whether the agent's video is available. | ||
Indicates whether the agent's audio is available. | ||
The Alibaba Real-Time Communication (ARTC) engine is created. | ||
Indicates whether push-to-talk mode is enabled for the current call. | ||
The current agent is about to leave (end the current call). | ||
A custom message is received from the current agent. | ||
The agent state changed. | ||
The network status changed. | ||
The volume changed. | ||
A notification for the result of the agent's recognition of the user's question. | ||
A notification for the agent's answer. | ||
The LLM has finished replying in the current call. | ||
The voice for the current call changed. | ||
Indicates whether voice interruption is enabled for the current call. | ||
The agent's current speech is interrupted. This callback is supported only for interruptions by specific words. | ||
Indicates whether custom frame capture mode is enabled for the current visual understanding call. | ||
The first frame of the agent's digital human is rendered. | ||
A human is about to take over from the current agent. | ||
The human takeover is connected. | ||
A notification for the agent's emotion result. | ||
A callback for the availability of the agent's message channel. | ||
A VCR result is received from the current agent. | ||
The connection status changed during the call. | ||
Audio loopback latency. | ||
If music accompaniment is played through the RTC instance during the current call, this playback callback is triggered. | ||
ARTCAICallEngineFactory Engine creation factory | Creates a default engine instance. |