File tree Expand file tree Collapse file tree 14 files changed +118
-0
lines changed
Classes/Components/Chat View Expand file tree Collapse file tree 14 files changed +118
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ -(void) activateModulesForXMPP {
5050
5151-(void ) activateCommonModules : (NSString *) server {
5252 [self activateModuleForName: @" BBlockingModule" ];
53+ [self activateModuleForName: @" BSinchModule" ];
5354 [self activateModuleForName: @" BLastOnlineModule" ];
5455 [self activateModuleForName: @" BAudioMessageModule" ];
5556 [self activateModuleForName: @" BVideoMessageModule" ];
Original file line number Diff line number Diff line change 7373#import < ChatSDK/PPublicThreadHandler.h>
7474#import < ChatSDK/PEncryptionHandler.h>
7575#import < ChatSDK/PBlockingHandler.h>
76+ #import < ChatSDK/PCallHandler.h>
77+ #import < ChatSDK/PCallDelegate.h>
78+ #import < ChatSDK/PCall.h>
7679#import < ChatSDK/PLastOnlineHandler.h>
7780#import < ChatSDK/PNearbyUsersHandler.h>
7881#import < ChatSDK/PReadReceiptHandler.h>
Original file line number Diff line number Diff line change 2525@property (nonatomic , readwrite ) id <PSearchHandler> search;
2626@property (nonatomic , readwrite ) id <PPublicThreadHandler> publicThread;
2727@property (nonatomic , readwrite ) id <PBlockingHandler> blocking;
28+ @property (nonatomic , readwrite ) id <PCallHandler> calling;
2829@property (nonatomic , readwrite ) id <PLastOnlineHandler> lastOnline;
2930@property (nonatomic , readwrite ) id <PNearbyUsersHandler> nearbyUsers;
3031@property (nonatomic , readwrite ) id <PReadReceiptHandler> readReceipt;
Original file line number Diff line number Diff line change 1+ //
2+ // PCall.h
3+ // ChatSDK
4+ //
5+ // Created by Pepe Becker on 9/3/19.
6+ //
7+
8+ #ifndef PCall_h
9+ #define PCall_h
10+
11+ @protocol PCall <NSObject >
12+
13+ - (void )answer ;
14+ - (void )hangup ;
15+ - (void )pauseVideo ;
16+ - (void )resumeVideo ;
17+
18+ - (void )setDelegate : (id <PCallDelegate>)delegate ;
19+ - (id <PCallDelegate>)delegate ;
20+
21+ - (NSString *)callId ;
22+ - (NSString *)remoteUserId ;
23+ - (BOOL )isOutgoing ;
24+
25+ @end
26+
27+ #endif /* PCall_h */
Original file line number Diff line number Diff line change 1+ //
2+ // PCallDelegate.h
3+ // ChatSDK
4+ //
5+ // Created by Pepe Becker on 9/5/19.
6+ //
7+
8+ #ifndef PCallDelegate_h
9+ #define PCallDelegate_h
10+
11+ @protocol PCall;
12+
13+ @protocol PCallDelegate <NSObject >
14+ @optional
15+ - (void )callDidEnd : (id <PCall>)call ;
16+ - (void )callDidProgress : (id <PCall>)call ;
17+ - (void )callDidEstablish : (id <PCall>)call ;
18+ - (void )callDidPauseVideo : (id <PCall>)call ;
19+ - (void )callDidResumeVideo : (id <PCall>)call ;
20+ @end
21+
22+ #endif /* PCallDelegate_h */
Original file line number Diff line number Diff line change 1+ //
2+ // PCallHandler.h
3+ // ChatSDKModules
4+ //
5+ // Created by Pepe Becker on 9/3/19.
6+ //
7+
8+ #ifndef PCallHandler_h
9+ #define PCallHandler_h
10+
11+ @class RXPromise;
12+ @protocol PCall;
13+
14+ @protocol PCallHandler <NSObject >
15+
16+ - (RXPromise *)startWithUserId : (NSString *)userId ;
17+ - (RXPromise *)callUserWithId : (NSString *)userId ;
18+ - (id <PCall>)activeCall ;
19+ - (id <PCall>)incomingCall ;
20+ - (void )answerIncomingCall ;
21+ - (void )hangupIncomingCall ;
22+ - (void )hangupActiveCall ;
23+
24+ - (UIView *)localView ;
25+ - (UIView *)remoteView ;
26+
27+ - (void )enableSpeaker ;
28+ - (void )disableSpeaker ;
29+
30+ - (int )captureDevicePosition ;
31+ - (void )setCaptureDevicePosition : (int )i ;
32+ - (void )toggleCaptureDevicePosition ;
33+
34+ - (UINavigationController *)callNavigationController ;
35+ - (UINavigationController *)incomingCallNavigationController ;
36+ - (UIViewController *)callViewController ;
37+ - (UIViewController *)incomingCallViewController ;
38+ - (void )setCallViewControllerClass : (Class )controllerClass ;
39+ - (void )setIncomingCallViewControllerClass : (Class )controllerClass ;
40+
41+ @end
42+
43+ #endif /* PCallHandler_h */
Original file line number Diff line number Diff line change 2323@protocol PPublicThreadHandler;
2424@protocol PLastOnlineHandler;
2525@protocol PBlockingHandler;
26+ @protocol PCallHandler;
2627@protocol PNearbyUsersHandler;
2728@protocol PReadReceiptHandler;
2829@protocol PStickerMessageHandler;
9495-(id <PPublicThreadHandler>) publicThread ;
9596-(id <PLastOnlineHandler>) lastOnline ;
9697-(id <PBlockingHandler>) blocking ;
98+ -(id <PCallHandler>) calling ;
9799-(id <PNearbyUsersHandler>) nearbyUsers ;
98100-(id <PReadReceiptHandler>) readReceipt ;
99101-(id <PStickerMessageHandler>) stickerMessage ;
121123-(void ) setPublicThread : (id <PPublicThreadHandler>) publicThread ;
122124-(void ) setLastOnline : (id <PLastOnlineHandler>) lastOnline ;
123125-(void ) setBlocking : (id <PBlockingHandler>) blocking ;
126+ -(void ) setCalling : (id <PCallHandler>) calling ;
124127-(void ) setNearbyUsers : (id <PNearbyUsersHandler>) nearbyUsers ;
125128-(void ) setReadReceipt : (id <PReadReceiptHandler>) readReceipt ;
126129-(void ) setStickerMessage : (id <PStickerMessageHandler>) stickerMessage ;
Original file line number Diff line number Diff line change 7979+(id <PSearchHandler>) search ;
8080+(id <PPublicThreadHandler>) publicThread ;
8181+(id <PBlockingHandler>) blocking ;
82+ +(id <PCallHandler>) calling ;
8283+(id <PLastOnlineHandler>) lastOnline ;
8384+(id <PNearbyUsersHandler>) nearbyUsers ;
8485+(id <PReadReceiptHandler>) readReceipt ;
Original file line number Diff line number Diff line change @@ -272,6 +272,10 @@ -(BBackgroundPushNotificationQueue *) pushQueue {
272272 return self.a .blocking ;
273273}
274274
275+ +(id <PCallHandler>) calling {
276+ return self.a .calling ;
277+ }
278+
275279+(id <PLastOnlineHandler>) lastOnline {
276280 return self.a .lastOnline ;
277281}
You can’t perform that action at this time.
0 commit comments