ARTalkChannelDelegate 接口类向 App 发送回调通知,上报运行时的事件。
pushToTalkResult
- (void)channel:(ARTalkChannel * _Nonnull)channel pushToTalkResult:(ARTalkPushToTalkErrorCode)code;
开始对讲回调
pushToTalkEnded
- (void)channel:(ARTalkChannel * _Nonnull)channel pushToTalkEnded:(ARTalkPushToTalkEndErrorCode)code;
结束对讲回调
userIsTalkOn
- (void)channel:(ARTalkChannel * _Nonnull)channel userIsTalkOn:(NSString *)uid userData: (NSString * _Nullable)userData userLevel:(NSInteger)level;
其他用户开始对讲回调
参数 | 描述 |
---|
channel | 所在频道。详见 ARTalkChannel 。 |
uid | 用户id。 |
userData | 自定义信息。 |
level | 用户对讲等级。 |
userIsTalkOff
- (void)channel:(ARTalkChannel * _Nonnull)channel userIsTalkOff:(NSString *)uid userData: (NSString * _Nullable)userData;
其他用户结束对讲回调。
userStreamOn
- (void)channel:(ARTalkChannel * _Nonnull)channel userStreamOn:(NSString *)uid userData: (NSString * _Nullable)userData;
广播通道打开回调
userStreamOff
- (void)channel:(ARTalkChannel * _Nonnull)channel userStreamOff:(NSString *)uid userData: (NSString * _Nullable)userData;
广播通道打开回调