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
channelIdUnique channel name for the AgoraRTC session in the string.
localUidLocal User ID. A 32-bit unsigned integer.
Returns
AgoraRtcConnection.

Property Documentation

◆ channelId

- (NSString* _Nonnull) channelId
readwritenonatomiccopy

The channel name.

◆ localUid

- (NSUInteger) localUid
readwritenonatomicassign

The ID of the local user.