Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkhaw authored Mar 17, 2020
1 parent 284cabe commit a96ce7d
Show file tree
Hide file tree
Showing 2 changed files with 653 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/ios/CordovaCall.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#import <Cordova/CDV.h>
#import <PushKit/PushKit.h>
#import <CallKit/CallKit.h>

@interface CordovaCall : CDVPlugin <PKPushRegistryDelegate, CXProviderDelegate>

// PushKit
@property (nonatomic, copy) NSString *VoIPPushCallbackId;
@property (nonatomic, copy) NSString *VoIPPushClassName;
@property (nonatomic, copy) NSString *VoIPPushMethodName;

- (void)init:(CDVInvokedUrlCommand*)command;

// CallKit
@property (nonatomic, strong) CXProvider *provider;
@property (nonatomic, strong) CXCallController *callController;

- (void)updateProviderConfig;
- (void)setupAudioSession;

- (void)setAppName:(CDVInvokedUrlCommand*)command;
- (void)setIcon:(CDVInvokedUrlCommand*)command;
- (void)setRingtone:(CDVInvokedUrlCommand*)command;
- (void)setIncludeInRecents:(CDVInvokedUrlCommand*)command;
- (void)setDTMFState:(CDVInvokedUrlCommand*)command;
- (void)setVideo:(CDVInvokedUrlCommand*)command;

- (void)receiveCall:(CDVInvokedUrlCommand*)command;
- (void)sendCall:(CDVInvokedUrlCommand*)command;
- (void)connectCall:(CDVInvokedUrlCommand*)command;
- (void)endCall:(CDVInvokedUrlCommand*)command;
- (void)registerEvent:(CDVInvokedUrlCommand*)command;
- (void)mute:(CDVInvokedUrlCommand*)command;
- (void)unmute:(CDVInvokedUrlCommand*)command;
- (void)speakerOn:(CDVInvokedUrlCommand*)command;
- (void)speakerOff:(CDVInvokedUrlCommand*)command;
- (void)callNumber:(CDVInvokedUrlCommand*)command;

- (void)receiveCallFromRecents:(NSNotification *) notification;
- (void)handleAudioRouteChange:(NSNotification *) notification;

@end
Loading

0 comments on commit a96ce7d

Please sign in to comment.