Agora RTC Objective-C API Reference Refactor

Instance Methods | Properties
AgoraRtcConnection Class Reference

Inherits <NSObject>, and <NSCopying>.

## Instance Methods
(instancetype _Nonnull) | - initWithChannelId:localUid:

## Properties
NSString *_Nonnull | channelId
NSUInteger | localUid

## Method Documentation

## ◆ initWithChannelId:localUid:

- (instancetype _Nonnull) initWithChannelId: |  | (NSString *_Nonnull) | channelId
localUid: |  | (NSInteger) | localUid

Init AgoraRtcConnection with channelId and localUid

Parameters

  channelId | Unique channel name for the AgoraRTC session in the string.
  localUid | Local User ID. A 32-bit unsigned integer.

Returns
  AgoraRtcConnection.

## Property Documentation

## ◆ channelId

- (NSString* _Nonnull) channelId
| read write nonatomic copy

The channel name.

## ◆ localUid

- (NSUInteger) localUid
| read write nonatomic assign

The ID of the local user.