-
Notifications
You must be signed in to change notification settings - Fork 0
Core Work Status Overview
Mr.P edited this page Aug 25, 2026
·
1 revision
Welcome to the Work Status documentation for the AIBuds SDK. This section covers APIs for monitoring the device's current operational status, providing real-time information about what the device is doing.
Browse the generated Wiki navigation for the pages in this section.
To monitor work status, follow these steps:
- Connect to Device - Establish a connection with your AIBuds device
-
Check Protocol Conformance - Verify the device conforms to
DeviceWorkStateAPIprotocol -
Get Status - Read the current
workStateproperty -
Listen for Changes - Implement
device(_:didWorkStateChanged:)on the device delegate
See Work States for the complete WorkState reference. The values are grouped as:
- Connection and Idle: Waiting for connection, connected idle, or disconnected idle
- Playback and Communication: Local music playback, phone calls, or AI conversation
- Capture and Transfer: Photo capture, video/audio recording, file transfer, or streaming
- Maintenance: Factory reset, OTA upgrade, shutdown, or device test states
Work status functionality is accessed through the DeviceWorkStateAPI protocol:
```swift
guard let device = device as? DeviceWorkStateAPI else {
print("Device does not support DeviceWorkStateAPI")
return
}
```
```objc
id<AIBudsDeviceWorkStateAPI> device = (id<AIBudsDeviceWorkStateAPI>)self.device;
if (![device conformsToProtocol:@protocol(AIBudsDeviceWorkStateAPI)]) {
NSLog(@"Device does not support AIBudsDeviceWorkStateAPI");
return;
}
```
-
Check Protocol Conformance: Always verify the device supports the
DeviceWorkStateAPIprotocol - Monitor Status: Use the device delegate callback to update UI when the state changes
- Handle State Transitions: Respond appropriately when the device changes state
- Avoid Conflicts: Don't initiate operations that conflict with the current state
- Work status provides real-time information about device activity
- Work-state changes can be reported through the optional device delegate callback
- Some states may prevent certain operations from being performed
AIBuds SDK documentation · Full documentation · API Reference
- Introduction
- Getting Started
- Core Concepts
-
Core Features
- Basic Features
- Device Info
- Find Device
- Physical Operations
- Work Mode
- Work Status
- Wear Detection
- Volume Control
- Music Control
- TWS
- Equalizer
- ANC
- Audio
- Camera
- Remote Camera
- File Import
- Teleprompter
- Segment Navigation
- Live Streaming
- Device Applications
- OTA
- Camera OTA
- Service Auth
- AI Services
- Voice Assistant
- Logging
- Advanced Topics
- Releases
- Troubleshooting