Agora RTC Objective-C API Reference Refactor

Public Member Functions
ILocalDataChannel Class Referenceabstract

Inherits RefCountInterface.

## Public Member Functions
virtual int | sendDataPacket (const char *packet, size_t length, uint64_t capture_time_ms, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int | setMetaData (const char *metaData, size_t length, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual Optional< int > | configuredChannelId () const =0

## Constructor & Destructor Documentation

## ◆ ~ILocalDataChannel()

virtual ~ILocalDataChannel | ( |  | ) |
| inline protected virtual

## Member Function Documentation

## ◆ sendDataPacket()

virtual int sendDataPacket | ( | const char * | packet,
|  | size_t | length,
|  | uint64_t | capture_time_ms,
|  | aosl_ref_t | ares = `AOSL_REF_INVALID`
| ) |  |
| pure virtual

Send data packet to this data channel after publishing.

Parameters

  [in] | packet | packet buffer pointer.
  [in] | length | packet buffer length.

Returns
  - 0: Success.
  - < 0: Failure.

## ◆ setMetaData()

virtual int setMetaData | ( | const char * | metaData,
|  | size_t | length,
|  | aosl_ref_t | ares = `AOSL_REF_INVALID`
| ) |  |
| pure virtual

Send meta data to this data channel before publishing.

Parameters

  [in] | metaData | meta data pointer.
  [in] | length | meta data length.

Returns
  ····
  - 0: Success.
  - < 0: Failure.

## ◆ configuredChannelId()

virtual Optional<int> configuredChannelId | ( |  | ) | const
| pure virtual

return configured channel id

Returns

## ◆ AddRef()

virtual void AddRef | ( |  | ) | const
| pure virtual inherited

## ◆ Release()

virtual RefCountReleaseStatus Release | ( |  | ) | const
| pure virtual inherited

## ◆ HasOneRef()

virtual bool HasOneRef | ( |  | ) | const
| pure virtual inherited