ACSCall 类

声明

@interface ACSCall : NSObject;

Description

描述呼叫

Methods

添加参与者

使用 MRI 将参与者添加到通话中。

-(ACSRemoteParticipant* _Nullable)addParticipant:(id<CommunicationIdentifier> _Nonnull)participant withError:(NSError*_Nullable*_Nonnull) error __attribute__((swift_error(nonnull_error)));

使用电话号码将参与者添加到通话中。

-(ACSRemoteParticipant* _Nullable)addParticipant:(PhoneNumberIdentifier* _Nonnull) participant options:(ACSAddPhoneNumberOptions* _Nullable)options withError:(NSError*_Nullable*_Nonnull) error __attribute__((swift_error(nonnull_error)));

功能

呼叫的功能扩展。

-(id _Nonnull)feature: (Class _Nonnull)featureClass;

开始音频

开始音频流

-(void)startAudio:(ACSCallAudioStream *)stream withCompletionHandler:(void (^)(NSError *error))completionHandler;

参数

  • stream -
  • completionHandler -作完成后要异步调用的块。

退货

  • void

停止音频

停止音频流

-(void)stopAudio:(ACSCallAudioStream *)stream withCompletionHandler:(void (^)(NSError *error))completionHandler;

参数

  • stream -
  • completionHandler -作完成后要异步调用的块。

退货

  • void

静音

将本地麦克风静音。

-(void)muteWithCompletionHandler:(void (^)(NSError *error))completionHandler DEPRECATED_MSG_ATTRIBUTE("Use muteOutgoingAudio instead");

参数

  • completionHandler -作完成后要异步调用的块。

退货

  • void

取消静音

取消本地麦克风静音。

-(void)unmuteWithCompletionHandler:(void (^)(NSError *error))completionHandler DEPRECATED_MSG_ATTRIBUTE("Use unmuteOutgoingAudio instead");

参数

  • completionHandler -作完成后要异步调用的块。

退货

  • void

muteIncomingAudio 静音

静音扬声器。

-(void)muteIncomingAudioWithCompletionHandler:(void (^)(NSError *error))completionHandler;

参数

  • completionHandler -作完成后要异步调用的块。

退货

  • void

取消静音传入音频

取消静音扬声器。

-(void)unmuteIncomingAudioWithCompletionHandler:(void (^)(NSError *error))completionHandler;

参数

  • completionHandler -作完成后要异步调用的块。

退货

  • void

取消静音输出音频

取消麦克风静音。

-(void)unmuteOutgoingAudioWithCompletionHandler:(void (^)(NSError *error))completionHandler;

参数

  • completionHandler -作完成后要异步调用的块。

退货

  • void

静音输出音频

将麦克风静音。

-(void)muteOutgoingAudioWithCompletionHandler:(void (^)(NSError *error))completionHandler;

参数

  • completionHandler -作完成后要异步调用的块。

退货

  • void

发送Dtmf

发送 DTMF 音调

-(void)sendDtmf:(ACSDtmfTone)tone withCompletionHandler:(void (^)(NSError *error))completionHandler;

参数

  • tone -
  • completionHandler -作完成后要异步调用的块。

退货

  • void

开始视频

开始将视频流共享到通话

-(void)startVideo:(ACSOutgoingVideoStream *)stream withCompletionHandler:(void (^)(NSError *error))completionHandler;

参数

  • stream - 要共享的本地视频流
  • completionHandler -作完成后要异步调用的块。

退货

  • void

停止视频

停止将视频流共享到通话

-(void)stopVideo:(ACSOutgoingVideoStream *)stream withCompletionHandler:(void (^)(NSError *error))completionHandler;

参数

  • stream - 本地视频流停止共享
  • completionHandler -作完成后要异步调用的块。

退货

  • void

挂断

挂断电话

-(void)hangUp:(ACSHangUpOptions *)options withCompletionHandler:(void (^)(NSError *error))completionHandler;

参数

  • options - 通话挂断选项
  • completionHandler -作完成后要异步调用的块。

退货

  • void

删除参与者

删除通话参与者

-(void)removeParticipant:(ACSRemoteParticipant *)participant withCompletionHandler:(void (^)(NSError *error))completionHandler;

参数

  • participant -
  • completionHandler -作完成后要异步调用的块。

退货

  • void

保留此电话

-(void)holdWithCompletionHandler:(void (^)(NSError *error))completionHandler;

参数

  • completionHandler -作完成后要异步调用的块。

退货

  • void

继续

恢复此通话

-(void)resumeWithCompletionHandler:(void (^)(NSError *error))completionHandler;

参数

  • completionHandler -作完成后要异步调用的块。

退货

  • void

属性

委托

您提供的用于从此 ACSCall 实例接收事件的对象。

@property(nonatomic, assign) id<ACSCallDelegate> delegate;

远程参与者

获取当前呼叫中的远程参与者列表。 如果与一百人或更多参与者进行通话,则此集合中仅存在媒体活跃参与者。

@property (copy, nonnull, readonly) NSArray<ACSRemoteParticipant *> * remoteParticipants;

id

调用的 ID

@property (retain, nonnull, readonly) NSString * id;

状态

通话的当前状态

@property (readonly) ACSCallState state;

callEndReason (调用结束原因)

包含指示呼叫如何结束的代码/子代码

@property (retain, nonnull, readonly) ACSCallEndReason * callEndReason;

方向

传出或传入,具体取决于呼叫方向

@property (readonly) ACSCallDirection direction;

是静音

本地麦克风是否静音。

@property (readonly) BOOL isMuted DEPRECATED_MSG_ATTRIBUTE("Use isOutgoingAudioMuted instead");

isOutgoingAudioMuted

本地麦克风是否静音。

@property (readonly) BOOL isOutgoingAudioMuted;

isIncomingAudio静音

本地扬声器是否静音。

@property (readonly) BOOL isIncomingAudioMuted;

callerInfo

呼叫者的身份

@property (retain, nonnull, readonly) ACSCallerInfo * callerInfo;

呼叫大厅

获取 Teams 会议大厅。

@property (retain, nonnull, readonly) ACSCallLobby * callLobby;

活动传入音频流

呼叫中当前活动的传入音频流

@property (retain, nonnull, readonly) ACSIncomingAudioStream * activeIncomingAudioStream;

主动输出音频流

呼叫中当前活动的传出音频流

@property (retain, nonnull, readonly) ACSOutgoingAudioStream * activeOutgoingAudioStream;

callParticipant角色

通话中的参与者角色

@property (readonly) ACSCallParticipantRole callParticipantRole;

localVideoStreams

获取当前通话中的本地视频流列表。

@property (copy, nonnull, readonly) NSArray<ACSLocalVideoStream *> * localVideoStreams DEPRECATED_MSG_ATTRIBUTE("Use outgoingVideoStreams instead");

outing视频流

获取当前呼叫中的传出流列表。

@property (copy, nonnull, readonly) NSArray<ACSOutgoingVideoStream *> * outgoingVideoStreams;

totalParticipantCount

当前通话中活跃的参与者总数

@property (readonly) int totalParticipantCount;

liveOutgoingAudioFilters

获取当前可配置的传出音频滤波器

@property (retain, nonnull, readonly) ACSLiveOutgoingAudioFilters * liveOutgoingAudioFilters;