zdk.objc
ZDKCall.h
1//
2// ZDKCall.h
3// ZDK
4//
5
6#ifndef ZDKCall_h
7#define ZDKCall_h
8
9#import <Foundation/Foundation.h>
10#import "ZDKBrandingInfo.h"
11#import "ZDKCallStatus.h"
12#import "ZDKAudioVideoCodecs.h"
13#import "ZDKVideoCallInfo.h"
14#import "ZDKAccount.h"
15#import "ZDKCallEventsHandler.h"
16#import "ZDKVideoRendererEventsHandler.h"
17#import "ZDKCall.h"
18#import "ZDKVideoFrameFormat.h"
19#import "ZDKOriginType.h"
20#import "ZDKDTMFCodes.h"
21#import "ZDKAudioFileFormat.h"
22#import "ZDKResult.h"
23#import "ZDKCameraSensorLocation.h"
24#import "ZDKZHandle.h"
25#import "ZDKBrandingInfo.h"
26@protocol ZDKBrandingInfo;
27#import "ZDKCallStatus.h"
28@protocol ZDKCallStatus;
29#import "ZDKVideoCallInfo.h"
30@protocol ZDKVideoCallInfo;
31#import "ZDKAccount.h"
32@protocol ZDKAccount;
33#import "ZDKCallEventsHandler.h"
34@protocol ZDKCallEventsHandler;
35#import "ZDKVideoRendererEventsHandler.h"
37#import "ZDKCall.h"
38@protocol ZDKCall;
39#import "ZDKResult.h"
40@protocol ZDKResult;
41
42NS_ASSUME_NONNULL_BEGIN
43
45
50@property(nonatomic, readonly) long int callHandle;
51
52@property(nonatomic) id<ZDKBrandingInfo> _Nullable branding;
53
60@property(nonatomic, readonly) id<ZDKCallStatus> status;
61
66@property(nonatomic, readonly) NSString* calleeNumber;
67
72@property(nonatomic, readonly) NSString* calleeName;
73
80@property(nonatomic, readonly) ZDKAudioVideoCodecs codecInUse;
81
91@property(nonatomic) BOOL onSpeaker;
92
99@property(nonatomic) BOOL held;
100
109@property(nonatomic) BOOL muted;
110
119@property(nonatomic, readonly) id<ZDKVideoCallInfo> _Nullable videoCallInfo;
120
121@property(nonatomic, readonly) BOOL isFirstClass;
122
129@property(nonatomic, readonly) id<ZDKAccount> owner;
130
135@property(nonatomic) NSString* recordFileName;
136
143-(void)setCallStatusListener:(id<ZDKCallEventsHandler>)value ;
150-(void)dropCallStatusListener:(id<ZDKCallEventsHandler>)value ;
154-(void)setVideoRendererNotificationsListener:(id<ZDKVideoRendererEventsHandler>)value ;
164-(id<ZDKResult>)ringing;
180-(id<ZDKResult>)hangUp;
221-(id<ZDKResult>)attendedTransfer:(id<ZDKCall>)transferee ;
240-(id<ZDKResult>)blindTransfer:(NSString*)transferee ;
249-(id<ZDKResult>)acceptVideo:(BOOL)accept ;
273-(void)sendVideoFrame:(unsigned char*)bytes byteCount:(int)byteCount type:(ZDKVideoFrameFormat)type ;
290-(ZDKCameraSensorLocation)videoGetCameraLocation;
308-(BOOL)hasVideo:(ZDKOriginType)origin ;
338-(id<ZDKResult>)sendDTMF:(ZDKDTMFCodes)dtmf ;
363-(id<ZDKResult>)enableZrtp:(BOOL)enabled ;
374-(id<ZDKResult>)confirmZrtpSas:(BOOL)confirmed ;
383-(id<ZDKResult>)configureCallRecordFormat:(ZDKAudioFileFormat)format ;
384-(NSString*)handlesDescription;
385
386@end
387
388NS_ASSUME_NONNULL_END
389
390#endif
The main account class.
Definition: ZDKAccount.h:39
Definition: ZDKBrandingInfo.h:14
Definition: ZDKCall.h:44
id< ZDKResult > videoToggleCamera()
Toggles the camera.
id< ZDKResult > startRecording()
Start recording call.
id< ZDKResult > notifyAccountOfOwnershipChange()
Notify upon Account ownership changes.
id< ZDKResult > offerVideo()
Offers Video.
ZDKAudioVideoCodecs codecInUse
Provides the used codec.
Definition: ZDKCall.h:80
id< ZDKVideoCallInfo > _Nullable videoCallInfo
Gets Video call information.
Definition: ZDKCall.h:119
BOOL muted
Sets the Mute state of the local input device.
Definition: ZDKCall.h:109
id< ZDKResult > stopRecording()
Stop recording.
id< ZDKAccount > owner
Returns the account owner.
Definition: ZDKCall.h:129
id< ZDKCallStatus > status
Provides the Call's status information.
Definition: ZDKCall.h:60
id< ZDKResult > rejectCallTransfer()
Rejects a call transfer request.
id< ZDKResult > hangUp()
Hang up the call.
long int callHandle
Gets call handle.
Definition: ZDKCall.h:50
BOOL held
Sets the hold state.
Definition: ZDKCall.h:99
id< ZDKResult > acceptCall()
Accepts an incoming call.
id< ZDKResult > restartVideoCapture()
Restart Video capture.
void stopHandlingVoipPhoneCallEvents()
Stops handling Call events.
NSString * recordFileName
Sets the record file name.
Definition: ZDKCall.h:135
BOOL onSpeaker
Sets the speakers state.
Definition: ZDKCall.h:91
ZDKCameraSensorLocation videoGetCameraLocation()
Provides Camera location.
NSString * calleeName
Provides the Callee name.
Definition: ZDKCall.h:72
void dropAllEventListeners()
Drops all event listeners.
id< ZDKCall > acceptCallTransfer()
Accept a call transfer request.
void startHandlingVoipPhoneCallEvents()
Start handling Call events.
id< ZDKResult > ringing()
Notifies the remote party that we are ringing (incoming calls)
NSString * calleeNumber
Provides the Callee number.
Definition: ZDKCall.h:66
Definition: ZDKCallEventsHandler.h:40
Call's status information.
Definition: ZDKCallStatus.h:22
API invocation status result.
Definition: ZDKResult.h:19
Definition: ZDKVideoCallInfo.h:16
Definition: ZDKVideoRendererEventsHandler.h:14
Definition: ZDKZHandle.h:13