-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1950e7
commit 3bfb5ff
Showing
14 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// PCall.h | ||
// ChatSDK | ||
// | ||
// Created by Pepe Becker on 9/3/19. | ||
// | ||
|
||
#ifndef PCall_h | ||
#define PCall_h | ||
|
||
@protocol PCall <NSObject> | ||
|
||
- (void)answer; | ||
- (void)hangup; | ||
- (void)pauseVideo; | ||
- (void)resumeVideo; | ||
|
||
- (void)setDelegate:(id<PCallDelegate>)delegate; | ||
- (id<PCallDelegate>)delegate; | ||
|
||
- (NSString *)callId; | ||
- (NSString *)remoteUserId; | ||
- (BOOL)isOutgoing; | ||
|
||
@end | ||
|
||
#endif /* PCall_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// PCallDelegate.h | ||
// ChatSDK | ||
// | ||
// Created by Pepe Becker on 9/5/19. | ||
// | ||
|
||
#ifndef PCallDelegate_h | ||
#define PCallDelegate_h | ||
|
||
@protocol PCall; | ||
|
||
@protocol PCallDelegate <NSObject> | ||
@optional | ||
- (void)callDidEnd:(id<PCall>)call; | ||
- (void)callDidProgress:(id<PCall>)call; | ||
- (void)callDidEstablish:(id<PCall>)call; | ||
- (void)callDidPauseVideo:(id<PCall>)call; | ||
- (void)callDidResumeVideo:(id<PCall>)call; | ||
@end | ||
|
||
#endif /* PCallDelegate_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// PCallHandler.h | ||
// ChatSDKModules | ||
// | ||
// Created by Pepe Becker on 9/3/19. | ||
// | ||
|
||
#ifndef PCallHandler_h | ||
#define PCallHandler_h | ||
|
||
@class RXPromise; | ||
@protocol PCall; | ||
|
||
@protocol PCallHandler <NSObject> | ||
|
||
- (RXPromise *)startWithUserId:(NSString *)userId; | ||
- (RXPromise *)callUserWithId:(NSString *)userId; | ||
- (id<PCall>)activeCall; | ||
- (id<PCall>)incomingCall; | ||
- (void)answerIncomingCall; | ||
- (void)hangupIncomingCall; | ||
- (void)hangupActiveCall; | ||
|
||
- (UIView *)localView; | ||
- (UIView *)remoteView; | ||
|
||
- (void)enableSpeaker; | ||
- (void)disableSpeaker; | ||
|
||
- (int)captureDevicePosition; | ||
- (void)setCaptureDevicePosition:(int)i; | ||
- (void)toggleCaptureDevicePosition; | ||
|
||
- (UINavigationController *)callNavigationController; | ||
- (UINavigationController *)incomingCallNavigationController; | ||
- (UIViewController *)callViewController; | ||
- (UIViewController *)incomingCallViewController; | ||
- (void)setCallViewControllerClass:(Class)controllerClass; | ||
- (void)setIncomingCallViewControllerClass:(Class)controllerClass; | ||
|
||
@end | ||
|
||
#endif /* PCallHandler_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters