9 #include "native_shared_ptr.h"
10 #include "PublicInterfaces.h"
11 #include "BrandingInfo.h"
12 #include "CallStatus.h"
13 #include "AudioVideoCodecs.h"
14 #include "VideoCallInfo.h"
16 #include "CallEventsHandler.h"
17 #include "VideoRendererEventsHandler.h"
18 #include "VideoFrameFormat.h"
19 #include "OriginType.h"
20 #include "DTMFCodes.h"
21 #include "AudioFileFormat.h"
23 #include "CameraSensorLocation.h"
26 using namespace System::Collections::Generic;
30 ref class BrandingInfo;
32 ref class VideoCallInfo;
34 ref class CallEventsHandler;
35 ref class VideoRendererEventsHandler;
46 static bool RegisterEventListeners()
48 std::shared_ptr<GeneralStatusEventListener> CallEventsHandler_Listener_tmp = std::make_shared<GeneralStatusEventListener>();
49 CallEventsHandler_Listener = CallEventsHandler_Listener_tmp.get();
50 listenersMap->try_emplace(
reinterpret_cast<intptr_t
>(CallEventsHandler_Listener), std::move(CallEventsHandler_Listener_tmp));
51 std::shared_ptr<GeneralStatusEventListener> VideoRendererEventsHandler_Listener_tmp = std::make_shared<GeneralStatusEventListener>();
52 VideoRendererEventsHandler_Listener = VideoRendererEventsHandler_Listener_tmp.get();
53 listenersMap->try_emplace(
reinterpret_cast<intptr_t
>(VideoRendererEventsHandler_Listener), std::move(VideoRendererEventsHandler_Listener_tmp));
57 static bool RegisteredEventListeners = RegisterEventListeners();
59 ZDK::ICall* cppRef =
nullptr;
61 Call(ZDK::Shared::Call src);
69 property long long CallHandle
95 property System::String^ CalleeNumber
97 System::String^ get();
104 property System::String^ CalleeName
106 System::String^ get();
115 property ZDK_NET::AudioVideoCodecs CodecInUse
117 ZDK_NET::AudioVideoCodecs get();
129 property bool OnSpeaker
132 void set(
bool value);
144 void set(
bool value);
158 void set(
bool value);
174 property bool IsFirstClass
194 property System::String^ RecordFileName
196 void set(System::String^ value);
348 void SendVideoFrame(
unsigned char* bytes,
int byteCount, ZDK_NET::VideoFrameFormat type);
473 virtual long long Handle()
override;
475 virtual void Initialize()
override;
477 virtual void ReleaseReference()
override;
ZDK_NET::Result ^ VideoToggleCamera()
Toggles the camera.
API invocation status result.
Definition: Result.h:24
Definition: CallEventsHandler.h:386
ZDK_NET::Result ^ AttendedTransfer(ZDK_NET::Call^ transferee)
Initiates an attended call transfer.
Definition: BrandingInfo.h:19
void StartHandlingVoipPhoneCallEvents()
Start handling Call events.
ZDK_NET::Call ^ AcceptCallTransfer()
Accept a call transfer request.
void DropAllEventListeners()
Drops all event listeners.
void DropCallStatusListener(ZDK_NET::CallEventsHandler^ value)
Drops Call status listener.
ZDK_NET::Result ^ ConfirmZrtpSas(bool confirmed)
Enables ZRTP.
Definition: VideoRendererEventsHandler.h:30
ZDK_NET::Result ^ OfferVideo()
Offers Video.
ZDK_NET::Result ^ Ringing()
Notifies the remote party that we are ringing (incoming calls)
bool HasVideo(ZDK_NET::OriginType origin)
Gets if video is present.
ZDK_NET::CameraSensorLocation VideoGetCameraLocation()
Provides Camera location.
ZDK_NET::Result ^ SendDTMF(ZDK_NET::DTMFCodes dtmf)
Sends a DTMF signal over a call.
ZDK_NET::Result ^ BlindTransfer(System::String^ transferee)
Initiates an unattended call transfer.
ZDK_NET::Result ^ StartRecording()
Start recording call.
Definition: GeneralStatusEventListener.h:90
The main account class.
Definition: Account.h:38
Call's status information.
Definition: CallStatus.h:27
ZDK_NET::Result ^ ConfigureCallRecordFormat(ZDK_NET::AudioFileFormat format)
Configures a call recording's encoding format and its specific settings.
ZDK_NET::Result ^ NotifyAccountOfOwnershipChange()
Notify upon Account ownership changes.
void SendVideoFrame(unsigned char *bytes, int byteCount, ZDK_NET::VideoFrameFormat type)
Send a video frame over the network.
Definition: VideoCallInfo.h:21
ZDK_NET::Result ^ RejectCallTransfer()
Rejects a call transfer request.
ZDK_NET::Result ^ RestartVideoCapture()
Restart Video capture.
ZDK_NET::Result ^ AcceptCall()
Accepts an incoming call.
ZDK_NET::Result ^ StopRecording()
Stop recording.
ZDK_NET::Result ^ EnableZrtp(bool enabled)
Enables ZRTP.
ZDK_NET::Result ^ AcceptVideo(bool accept)
Accepts an incoming offer for video.
void SetCallStatusListener(ZDK_NET::CallEventsHandler^ value)
Sets Call status listener.
void StopHandlingVoipPhoneCallEvents()
Stops handling Call events.
ZDK_NET::Result ^ HangUp()
Hang up the call.