Core Classes
AvatarKit
The core management class of the SDK, responsible for initialization and global configuration.AvatarManager
Avatar resource manager, responsible for downloading, caching, and loading avatar data.AvatarView
3D rendering view that automatically creates and manages AvatarController.AvatarController
Real-time communication controller that handles WebSocket connections and audio/video data.Avatar
Avatar data class containing core avatar information.Configuration Types
Configuration
SDK configuration class.Environment
Environment enum.State Types
ConnectionState
Connection state sealed class.AvatarState
Avatar state enum (from AvatarPlayer).LoadProgress
Load progress sealed class.Usage Examples
Basic Initialization
1
Create Configuration
2
Load Avatar
Ensure the avatar ID is valid and network connection is normal. It’s recommended to check network status before loading.
Create Avatar View
1
Create View Instance
2
Initialize and Start
Audio Processing
Audio Application Example
Resource Management
Resource Cleanup Example
Error Handling
Error Handling Example
Cache Management
Cache Management Example
Performance Optimization Tips
- SDK automatically manages resource caching, no need to re-download for repeated loads
- Resources are cached using LRU strategy with automatic cleanup
- Vulkan rendering backend provides optimal performance on Android devices
- Support for lifecycle-aware resource management
- It’s recommended to use on modern Android devices for best performance

