NIMSDK-iOS
载入中...
搜索中...
未找到
NIMSignalManagerProtocol.h 文件参考
#import <Foundation/Foundation.h>

浏览源代码.

protocol  <NIMSignalManagerDelegate>
 
protocol  <NIMSignalManager>
 

类型定义

typedef void(^ NIMSignalingJoinChannelBlock) (NSError *__nullable error, NIMSignalingChannelDetailedInfo *__nullable response)
 
typedef void(^ NIMSignalingCallBlock) (NSError *__nullable error, NIMSignalingChannelDetailedInfo *__nullable response)
 
typedef void(^ NIMSignalingAcceptBlock) (NSError *__nullable error, NIMSignalingChannelDetailedInfo *__nullable response)
 
typedef void(^ NIMSignalingOperationBlock) (NSError *__nullable error)
 
typedef void(^ NIMSignalingQueryChannelBlock) (NSError *__nullable error, NIMSignalingChannelDetailedInfo *__nullable response)
 
typedef void(^ NIMSignalingOptimizationCallBlock) (NSError *__nullable error, NIMSignalingChannelCompositionInfo *__nullable response)
 

枚举

enum  NIMSignalingChannelType { NIMSignalingChannelTypeAudio = 1 , NIMSignalingChannelTypeVideo = 2 , NIMSignalingChannelTypeCustom = 3 }
 
enum  NIMSignalingEventType {
  NIMSignalingEventTypeClose = 1 , NIMSignalingEventTypeJoin = 2 , NIMSignalingEventTypeInvite = 3 , NIMSignalingEventTypeCancelInvite = 4 ,
  NIMSignalingEventTypeReject = 5 , NIMSignalingEventTypeAccept = 6 , NIMSignalingEventTypeLeave = 7 , NIMSignalingEventTypeContrl = 8
}
 

变量

NS_ASSUME_NONNULL_BEGIN typedef void(^ NIMSignalingCreateChannelBlock )(NSError *__nullable error, NIMSignalingChannelInfo *__nullable response)
 

类型定义说明

◆ NIMSignalingAcceptBlock

typedef void(^ NIMSignalingAcceptBlock) (NSError *__nullable error, NIMSignalingChannelDetailedInfo *__nullable response)

接受回调

参数
error错误信息,如果成功,error 为 nil
response频道相关信息

◆ NIMSignalingCallBlock

typedef void(^ NIMSignalingCallBlock) (NSError *__nullable error, NIMSignalingChannelDetailedInfo *__nullable response)

呼叫回调

参数
error错误信息,如果成功,error 为 nil
response频道相关信息

◆ NIMSignalingJoinChannelBlock

typedef void(^ NIMSignalingJoinChannelBlock) (NSError *__nullable error, NIMSignalingChannelDetailedInfo *__nullable response)

加入频道回调

参数
error错误信息,如果成功,error 为 nil
response频道相关信息

◆ NIMSignalingOperationBlock

typedef void(^ NIMSignalingOperationBlock) (NSError *__nullable error)

信令操作回调

参数
error错误信息,如果成功,error 为 nil

◆ NIMSignalingOptimizationCallBlock

typedef void(^ NIMSignalingOptimizationCallBlock) (NSError *__nullable error, NIMSignalingChannelCompositionInfo *__nullable response)

呼叫回调

参数
error错误信息,如果成功,error 为 nil
response频道相关信息

◆ NIMSignalingQueryChannelBlock

typedef void(^ NIMSignalingQueryChannelBlock) (NSError *__nullable error, NIMSignalingChannelDetailedInfo *__nullable response)

频道查询回调

参数
error错误信息,如果成功,error 为 nil

枚举类型说明

◆ NIMSignalingChannelType

频道类型

枚举值
NIMSignalingChannelTypeAudio 

音频类型

NIMSignalingChannelTypeVideo 

视频类型

NIMSignalingChannelTypeCustom 

自定义类型

◆ NIMSignalingEventType

信令通知事件定义类型

枚举值
NIMSignalingEventTypeClose 

关闭频道

NIMSignalingEventTypeJoin 

加入频道

NIMSignalingEventTypeInvite 

邀请加入频道

NIMSignalingEventTypeCancelInvite 

取消邀请

NIMSignalingEventTypeReject 

拒绝加入频道

NIMSignalingEventTypeAccept 

接受邀请

NIMSignalingEventTypeLeave 

离开频道

NIMSignalingEventTypeContrl 

自定义事件

变量说明

◆ NIMSignalingCreateChannelBlock

NS_ASSUME_NONNULL_BEGIN typedef void(^ NIMSignalingCreateChannelBlock) (NSError *__nullable error, NIMSignalingChannelInfo *__nullable response) ( NSError *__nullable  error,
NIMSignalingChannelInfo *__nullable  response 
)

创建频道回调

参数
error错误信息,如果成功,error 为 nil
response频道相关信息