视频客服插件 - iOS v2401.0
载入中...
搜索中...
未找到
JCCCommonCallback.h
1//
2// JCCCommonCallback.h
3// JCCGuestPlugin
4//
5// Created by mirror on 2022/5/24.
6// Copyright © 2022 juphoon. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <JCCGuestPlugin/JCCConstants.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
16
17
18@protocol JCCCommonCallback <NSObject>
19
25- (void)onLogin:(BOOL)result reason:(JCCReasonCode)reason;
26
32- (void)onLogout:(JCCReasonCode)reason;
33
41- (void)onOnlineMessageSendResult:(BOOL)result operatorId:(int)operatorId;
42
48- (void)onOnlineMessageReceived:(NSString *)message userId:(NSString *)userId;
49
50
56- (void)onUploadFileResult:(NSString *)fileName response:(NSDictionary *)response;
57
63- (void)onUploadFileError:(NSString *)fileName error:(NSError *)error;
64
71- (void)onMessageInCallReceived:(NSString *)type content:(NSString *)content fromUserId:(NSString *)fromUserId;
72
80- (void)onError:(NSString *)errorCode errorCodeDetail:(NSString *)errorCodeDetail;
81
88- (void)onSystemPhoneStateChanged:(SystemPhoneState)newState oldState:(SystemPhoneState)oldState;
89
90@optional
91
99- (BOOL)onViewEvent:(JCCViewEvent)viewEvent;
100
101@end
102
104
105NS_ASSUME_NONNULL_END
JCCViewEvent
Definition: JCCConstants.h:270
JCCReasonCode
登录登出原因枚举
Definition: JCCConstants.h:80