AtomicXCore SDK is TRTC's next-generation reactive API suite, purpose-built for audio and video calling scenarios. It enables you to quickly build custom UI pages for your applications.
The SDK provides comprehensive features for call management, participant management, and device management. Built on TRTC's infrastructure, it delivers ultra-low latency and high-quality audio and video performance.
This page provides a categorized overview of all audio and video calling APIs available in AtomicXCore SDK for Android.
LoginStore
User Authentication & Login Management Module
Functionality: Provides essential authentication services, including user authentication, login state management, and user profile maintenance.
Reactive Data
|
| Current logged-in user information. |
| Current login status. |
Interface Functions
|
| Logs in the user. |
| Logs out the user. |
| Sets user profile information. |
| Adds a listener for login callback events. |
| Removes a listener for login callback events. |
CallStore
Call List Management Module
Core Features: Manages the lifecycle of audio and video calls, including initiating, answering, rejecting, and ending one-on-one and group calls. Maintains call history.
Technical Highlights:
Paginated queries for call records
Real-time call state synchronization (participants, volume, network quality)
Reactive data management with Combine to keep UI in sync
Event-driven architecture (CallEvent) for call initiation, incoming invitations, and termination
Business Value: Provides call management for audio and video communication platforms, supporting one-on-one and group calls. Serves as the foundation for real-time audio and video services.
Use Cases: Initiating and answering calls, managing call states, group collaboration, querying and deleting call records.
Reactive Data
Data | Description |
| Call event publisher used to subscribe to call events. |
| Adds a listener for call event callbacks. |
| Removes a listener for call event callbacks. |
Interface Functions
|
| Initiates a 1-on-1 or group call. |
| Answers an incoming call. |
| Rejects an incoming call. |
| Hangs up the current call. |
| Actively joins an ongoing call. |
| Invites a user to join the call. |
| Queries recent call history records. |
| Deletes recent call history records. |
CallCoreView
Call View Component
Core Features: Renders video and handles interactions for the call interface. Supports multiple layout modes (1-on-1 floating, group grid, Picture-in-Picture), call-waiting animations, and customization of volume indicators, network status, and user avatars.
Technical Highlights:
Dynamic switching between three layout modes: Float, Grid, and Picture-in-Picture
Customizable volume levels and network quality indicators
Reactive architecture using Kotlin Flow and StateFlow
Automatic subscription to CallStore states for real-time synchronization
Business Value: Provides a ready-to-use view component that encapsulates video layout and state management logic while supporting extensive visual customization.
Use Cases: Scenarios requiring custom UI for audio/video calls.
Interface Functions
|
| Sets the layout type. |
| Sets the call-waiting animation. |
| Sets icons for different volume levels. |
| Sets icons for network quality levels. |
| Sets avatars for call participants. |
DeviceStore
Device State Management Module
Core Features: Manages audio and video hardware (cameras, microphones), monitors device state, and handles permission checks.
Technical Highlights:
Multi-device management
Real-time status monitoring
Dynamic permission checks
Automatic device fault recovery
Business Value: Provides a stable hardware foundation for audio/video calls, ensuring reliable media capture and smooth user experience.
Use Cases: Device management, permission control, audio/video capture, and hardware troubleshooting.
Reactive Data
|
| Microphone ON/OFF status. |
| The last error state reported by the microphone. |
| Recording/Capture volume level (0-100). |
| Current real-time microphone volume (0-100). |
| Playout/Output volume level (0-100). |
| Camera ON/OFF status. |
| The last error state reported by the camera. |
| Indicates if the front camera is currently in use. |
| Local video mirroring type. |
| Local video quality settings. |
| Current audio output route (Speaker/Earpiece/Headphones). |
| Screen sharing status. |
| Network information and status. |
Interface Functions
|
| Enables the local microphone. |
| Disables the local microphone. |
| Sets the recording volume. |
| Sets the playout volume. |
| Sets the audio output route. |
| Previews the front camera; renders the feed to the cameraView parameter. |
| Stops the camera preview. |
| Enables the local camera. |
| Disables the local camera. |
| Switches camera. true: Front, false: Rear. |
| Sets the mirroring mode for the camera feed. |
| Sets the streaming resolution. |
| Starts screen sharing. |
| Stops screen sharing. |