9 #import <Foundation/Foundation.h>
42 - (void)liveKit:(
AgoraLiveKit *_Nonnull)kit didOccurWarning:(AgoraWarningCode)warningCode NS_SWIFT_NAME(liveKit(_:didOccurWarning:));
51 - (void)liveKit:(
AgoraLiveKit *_Nonnull)kit didOccurError:(AgoraErrorCode)errorCode NS_SWIFT_NAME(liveKit(_:didOccurError:));
60 - (void)liveKit:(
AgoraLiveKit *_Nonnull)kit didJoinChannel:(NSString *_Nonnull)channel withUid:(NSUInteger)uid elapsed:(NSInteger)elapsed NS_SWIFT_NAME(liveKit(_:didJoinChannel:withUid:elapsed:));
66 - (void)liveKitDidLeaveChannel:(
AgoraLiveKit *_Nonnull)kit NS_SWIFT_NAME(liveKitDidLeaveChannel(_:));
75 - (void)liveKit:(
AgoraLiveKit *_Nonnull)kit didRejoinChannel:(NSString *_Nonnull)channel withUid:(NSUInteger)uid elapsed:(NSInteger)elapsed NS_SWIFT_NAME(liveKit(_:didRejoinChannel:withUid:elapsed:));
87 - (void)liveKitRequestToken:(
AgoraLiveKit *_Nonnull)kit NS_SWIFT_NAME(liveKitRequestToken(_:));
100 - (void)liveKit:(
AgoraLiveKit * _Nonnull)kit tokenPrivilegeWillExpire:(NSString * _Nonnull)token NS_SWIFT_NAME(liveKit(_:tokenPrivilegeWillExpire:));
119 - (void)liveKitConnectionDidInterrupted:(
AgoraLiveKit *_Nonnull)kit NS_SWIFT_NAME(liveKitConnectionDidInterrupted(_:));
128 - (void)liveKitConnectionDidLost:(
AgoraLiveKit *_Nonnull)kit NS_SWIFT_NAME(liveKitConnectionDidLost(_:));
143 __attribute__((visibility(
"default")))
@interface AgoraLiveKit : NSObject
148 @property (weak, nonatomic) _Nullable id<AgoraLiveDelegate> delegate;
154 + (NSString *_Nonnull)getSdkVersion NS_SWIFT_NAME(getSdkVersion());
166 + (instancetype _Nonnull)sharedLiveKitWithAppId:(NSString *_Nonnull)appId NS_SWIFT_NAME(sharedLiveKitWithAppId(_:));
185 + (void)destroy NS_SWIFT_NAME(destroy());
203 - (int)joinChannelByToken:(NSString *_Nullable)token
204 channelId:(NSString *_Nonnull)channelId
206 uid:(NSUInteger)uid NS_SWIFT_NAME(joinChannel(byToken:channelId:config:uid:));
213 - (int)leaveChannel NS_SWIFT_NAME(leaveChannel());
224 - (int)renewToken:(NSString*_Nonnull)token NS_SWIFT_NAME(renewToken(_:));
233 - (int)startPreview:(
VIEW_CLASS *_Nonnull)view
240 - (int)stopPreview NS_SWIFT_NAME(stopPreview());
242 - (int)sendCustomReportMessage:(NSString * _Nullable)
id
243 category:(NSString * _Nullable)category
244 event:(NSString * _Nullable)
event
245 label:(NSString * _Nullable)label
246 value:(NSInteger)value
247 connectionId:(NSUInteger)connectionId NS_SWIFT_NAME(sendCustomReportMessage(_:category:event:label:value:connectionId:));
249 - (int)setLogLevel:(LogLevel)level NS_SWIFT_NAME(setLogLevel(_:));