通话通知代理
更新时间:2025-08-01 04:10:41

通话通知代理

来电.
- (void)onRing

通话创建成功.
- (void)onConnected

通话结束
- (void)onFinished:(int)bitCode message:(NSString *)message
  • PARAMETERS:
NAME NOTERIPTION
bitCode 通话结束状态码.
message 通话结束原因

通话记录变更通知.
  • 说明:通知用户刷新通话记录列表
- (void)onCallHistoryInfoUpdate

获取通话记录回调.
- (void)onCallHistoryListResult:(BOOL)success result:(NSArray<YealinkSDKCallHistoryInfo *> *)result
  • PARAMETERS:
NAME NOTERIPTION
success 是否获取成功.
result 通话记录列表数据
  • 关联类型:

@interface YealinkSDKCallHistoryInfo: NSObject
/*!
 @brief 通话Id
 */
@property (nonatomic, copy) NSString *recordId;
/*!
 @brief 通话开始时间
 */
@property (nonatomic, assign) long long beginTime;
/*!
 @brief 通话持续时间
 */
@property (nonatomic, assign) long long duration;
/*!
 @brief 通话状态类型
 @link YealinkSDKCallHistoryState
 */
@property (nonatomic, assign) YealinkSDKCallHistoryState callState;
/*!
 @brief 来电通话的名称
 */
@property (nonatomic, copy) NSString *callerDisplayName;
/*!
 @brief 来电通话的号码
 */
@property (nonatomic, copy) NSString *callerNumber;
/*!
 @brief 去电通话的名称
 */
@property (nonatomic, copy) NSString *calleeDisplayName;
/*!
 @brief 去电通话的号码
 */
@property (nonatomic, copy) NSString *calleeNumber;
/*!
 @brief 被叫用户subject id
 */
@property (nonatomic, copy) NSString *calleeSubjectId;
/*!
 @brief 合并通话记录条数
 */
@property (nonatomic, assign) NSInteger groupNum;

@end

获取通话记录详情回调.
- (void)onCallHistoryDetailResult:(BOOL)success result:(NSArray<YealinkSDKCallHistoryDetailInfo *> *)result
  • PARAMETERS:
NAME NOTERIPTION
success 是否获取成功.
result 通话记录详情列表数据
  • 关联类型:

@interface YealinkSDKCallHistoryDetailInfo: NSObject
/*!
 @brief 通话Id
 */
@property (nonatomic, copy) NSString *recordId;
/*!
 @brief 通话开始时间
 */
@property (nonatomic, assign) long long beginTime;
/*!
 @brief 通话持续时间
 */
@property (nonatomic, assign) long long duration;
/*!
 @brief 通话状态类型
 @link YealinkSDKCallHistoryState
 */
@property (nonatomic, assign) YealinkSDKCallHistoryState callState;
/*!
 @brief 来电通话的名称
 */
@property (nonatomic, copy) NSString *callerDisplayName;
/*!
 @brief 来电通话的号码
 */
@property (nonatomic, copy) NSString *callerNumber;
/*!
 @brief 主叫用户subject id
 */
@property (nonatomic, copy) NSString *callerSubjectId;
/*!
 @brief 主叫号码类型
 @link YealinkSDKCallNumberType
 */
@property (nonatomic, assign) YealinkSDKCallNumberType callerNumberType;
/*!
 @brief 去电通话的名称
 */
@property (nonatomic, copy) NSString *calleeDisplayName;
/*!
 @brief 去电通话的号码
 */
@property (nonatomic, copy) NSString *calleeNumber;
/*!
 @brief 被叫用户subject id
 */
@property (nonatomic, copy) NSString *calleeSubjectId;
/*!
 @brief 被叫号码类型
 @link YealinkSDKCallNumberType
 */
@property (nonatomic, assign) YealinkSDKCallNumberType calleeNumberType;
/*!
 @brief 业务类型
 @link YealinkSDKCallRelationType
 */
@property (nonatomic, assign) YealinkSDKCallRelationType relationType;
/*!
 @brief 业务类型方向
 @link YealinkSDKCallRelationTypeDirection
 */
@property (nonatomic, assign) YealinkSDKCallRelationTypeDirection relationTypeDirection;
/*!
 @brief 关联号码
 */
@property (nonatomic, copy) NSString *relationNumber;
/*!
 @brief 关联号码名称
 */
@property (nonatomic, copy) NSString *relationName;
/*!
 @brief 关联用户 subject_id
 */
@property (nonatomic, copy) NSString *relationSubjectId;
/*!
 @brief 通话结束原因
 @link YealinkSDKCallEndReason
 */
@property (nonatomic, assign) YealinkSDKCallEndReason endReason;
/*!
 @brief 通话记录是否已读
 */
@property (nonatomic, assign) BOOL isRead;
/*!
 @brief 对端是否是本端的高管
 */
@property (nonatomic, assign) BOOL peerIsSenior;

@end

名片点击事件回调
- (void)onPhoneNameBarClicked:(UIViewController *)viewController

转接栏点击事件回调
- (void)onPhoneTransferMenuClicked:(UIViewController *)viewController

本地主流hold
- (void)onHold

本地主流解hold
- (void)onUnHold

对端主流hold
- (void)onHeld

对端主流解hold
- (void)onUnHeld

翻转信息变更
- (void)onCallFlipInfoUpdate

自定义底部栏返回数组,传空数组时会隐藏底部栏
- (NSArray<YealinkSDKCallToolBarMenuItem *> *)buildCallBottomMenus
  • RETURN VALUE:
TYPE NOTERIPTION
NSArray<YealinkSDKCallToolBarMenuItem*> 底部栏item数组

自定义更多菜单返回数组
- (NSArray<YealinkSDKCallMoreMenuItem *> *)buildCallMoreMenus
  • RETURN VALUE:
TYPE NOTERIPTION
NSArray<YealinkSDKCallMoreMenuItem*> 自定义更多菜单item数组

本页目录