Jabber Guest iOS SDK
CJGuestCallViewController.h
1 //
2 // CJGuestCallViewController.h
3 // JabberGuest
4 //
5 // Copyright (c) 2013 Cisco Systems, Inc. All Rights Reserved.
6 //
7 
8 #import <UIKit/UIKit.h>
9 #import <JabberGuest/JabberGuest.h>
10 #import <MessageUI/MessageUI.h>
11 
13 
14 
18 @interface CJGuestCallViewController : UIViewController <CJGuestCallBarViewDelegate, UIActionSheetDelegate>
19 
23 @property (nonatomic, readwrite, strong) NSString * serverName;
24 
28 @property (nonatomic, readwrite, strong) NSString * toURI;
29 
33 @property (nonatomic, readwrite, strong) NSString * fullServerUrl;
34 
38 @property (weak) id <CJGuestCallViewControllerDelegate> delegate;
39 
43 @property (nonatomic, readwrite) NSTimeInterval secondsCallBarHide;
44 
50 @property(nonatomic, readwrite) BOOL confirmBeforeHangupDuringScreenShare;
51 
55 + (BOOL)hasActiveCall;
56 
60 - (void)showCallStatistics;
61 
72 - (void)configureFromURL:(NSURL *)url;
73 
82 - (void)enterBackground;
83 
92 - (void)enterForeground;
93 
99 - (void)terminate;
100 
101 @end
102 
103 
108 
109 @optional
110 
116 - (void)callFinishedForCallController:(CJGuestCallViewController *)callController;
117 
123 - (void)moreButtonPressedForCallController:(CJGuestCallViewController *)callController;
124 
131 - (void) onInvalidCert:(NSString*)certFingerprint
132  certSubjectCN:(NSString*)certSubjectCN
133  referenceID:(NSString*)referenceID
134  invalidReason:(NSArray*)invalidReason
135 subjectCertificateData:(NSString*)subjectCertificateData
136 intermediateCACertificateData:(NSArray*)intermediateCACertificateData
137  invalidCertCallback:(id <CJGuestInvalidCertCallback>)invalidCertCallback;
138 
139 @end
id< CJGuestCallViewControllerDelegate > delegate
The delegate that implements the CJGuestCallViewControllerDelegate protocol.
Definition: CJGuestCallViewController.h:38
BOOL confirmBeforeHangupDuringScreenShare
Controls whether the pressing End Call during screen share requires confirmation. ...
Definition: CJGuestCallViewController.h:50
void terminate()
Handles terminating an active call when your app terminates.
Definition: CJGuestCallViewController.mm:1208
The delegate for CJGuestCallBarViewDelegate.
Definition: CJGuestCallBarView.h:140
NSString * fullServerUrl
The Url including server name, toURI and extra prefetched configurations.
Definition: CJGuestCallViewController.h:33
JabberGuest/JabberGuestSDK/JabberGuestSDKLib The high-level Jabber Guest controller object...
Definition: CJGuestCallViewController.mm:133
NSTimeInterval secondsCallBarHide
The number of seconds to keep the call bar visible after it is made visible.
Definition: CJGuestCallViewController.h:43
BOOL hasActiveCall()
Returns YES if the call state is connected, connecting, or disconnecting.
Definition: CJGuestCallViewController.mm:1183
An object implementing this protocol is passed to the CJGuestInvalidCertDelegate. ...
Definition: CJGuestCall.h:19
NSString * toURI
The URI to call.
Definition: CJGuestCallViewController.h:28
void enterForeground()
Handles all the details of having an active call go to the foreground.
Definition: CJGuestCallViewController.mm:1204
void showCallStatistics()
displays a tranparent window showing call statistics for an active call
Definition: CJGuestCallViewController.mm:2014
void enterBackground()
Handles all the details of having an active call go to the background.
Definition: CJGuestCallViewController.mm:1200
NSString * serverName
The Jabber Guest server name.
Definition: CJGuestCallViewController.h:23
The delegate for CJGuestCallViewController.
Definition: CJGuestCallViewController.h:107