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;
32 @property (nonatomic, readwrite, strong) NSString * fullServerUrl;
33 
37 @property (weak) id <CJGuestCallViewControllerDelegate> delegate;
38 
42 @property (nonatomic, readwrite) NSTimeInterval secondsCallBarHide;
43 
49 @property(nonatomic, readwrite) BOOL confirmBeforeHangupDuringScreenShare;
50 
54 + (BOOL)hasActiveCall;
55 
59 - (void)showCallStatistics;
60 
71 - (void)configureFromURL:(NSURL *)url;
72 
81 - (void)enterBackground;
82 
91 - (void)enterForeground;
92 
98 - (void)terminate;
99 
100 @end
101 
102 
107 
108 @optional
109 
115 - (void)callFinishedForCallController:(CJGuestCallViewController *)callController;
116 
122 - (void)moreButtonPressedForCallController:(CJGuestCallViewController *)callController;
123 
130 - (void) onInvalidCert:(NSString*)certFingerprint
131  certSubjectCN:(NSString*)certSubjectCN
132  referenceID:(NSString*)referenceID
133  invalidReason:(NSArray*)invalidReason
134 subjectCertificateData:(NSString*)subjectCertificateData
135 intermediateCACertificateData:(NSArray*)intermediateCACertificateData
136  invalidCertCallback:(id <CJGuestInvalidCertCallback>)invalidCertCallback;
137 
138 @end
id< CJGuestCallViewControllerDelegate > delegate
The delegate that implements the CJGuestCallViewControllerDelegate protocol.
Definition: CJGuestCallViewController.h:37
BOOL confirmBeforeHangupDuringScreenShare
Controls whether the pressing End Call during screen share requires confirmation. ...
Definition: CJGuestCallViewController.h:49
void terminate()
Handles terminating an active call when your app terminates.
Definition: CJGuestCallViewController.mm:1206
The delegate for CJGuestCallBarViewDelegate.
Definition: CJGuestCallBarView.h:140
NSString * fullServerUrl
The Url including server name, toURI and extra prefetched configurations.
Definition: CJGuestCallViewController.h:32
JabberGuest/JabberGuestSDK/JabberGuestSDKLib The high-level Jabber Guest controller object...
Definition: CJGuestCallViewController.mm:132
NSTimeInterval secondsCallBarHide
The number of seconds to keep the call bar visible after it is made visible.
Definition: CJGuestCallViewController.h:42
BOOL hasActiveCall()
Returns YES if the call state is connected, connecting, or disconnecting.
Definition: CJGuestCallViewController.mm:1181
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:1202
void showCallStatistics()
displays a tranparent window showing call statistics for an active call
Definition: CJGuestCallViewController.mm:2012
void enterBackground()
Handles all the details of having an active call go to the background.
Definition: CJGuestCallViewController.mm:1198
NSString * serverName
The Jabber Guest server name.
Definition: CJGuestCallViewController.h:23
The delegate for CJGuestCallViewController.
Definition: CJGuestCallViewController.h:106