ACSIncomingCall 类

声明

@interface ACSIncomingCall : NSObject;

说明

描述传入呼叫

方法

accept

接听来电

-(void)accept:(ACSAcceptCallOptions *)options withCompletionHandler:(void (^)(ACSCall * value, NSError *error))completionHandler;

参数

  • options - 用于呼叫的选项 接受呼叫
  • completionHandler - 在操作完成后以异步方式调用的块。

返回

  • void

reject

拒绝此传入呼叫

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

参数

  • completionHandler - 在操作完成后以异步方式调用的块。

返回

  • void

属性

delegate

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

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

callEndReason

描述呼叫结束的原因

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

callerInfo

有关调用方的信息

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

id

呼叫 ID

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

isVideoEnabled

是否启用了传入视频

@property (readonly) BOOL isVideoEnabled;