Agora RTC Objective-C API Reference Refactor

Data Fields
DataChannelConfig Struct Reference

## Data Fields
bool | syncWithMedia
bool | ordered
int | compressionLength
int32_t | priority

## Detailed Description

The definition of the DataChannelConfig struct.

## Constructor & Destructor Documentation

## ◆ DataChannelConfig()

DataChannelConfig | ( |  | ) |
| inline

## Field Documentation

## ◆ syncWithMedia

bool syncWithMedia

Whether this channel should sync with media stream:

- true: sync .
- false: not sync.

## ◆ ordered

bool ordered

Whether this channel should ensure oredered message:

- true: orderd .
- false: not orderd.

## ◆ compressionLength

int compressionLength

Whether this channel should compress the data packet:

- <= 0: We dont compress the data packet
- > 0: Once the packet length exceeds the compressionLength, we compress it.

## ◆ channelId

Optional<int> channelId

## ◆ priority

int32_t priority

The priority