zdk.net
Public Member Functions | Public Attributes | Properties | List of all members
ZDK_NET::CallsProvider Class Reference

Active calls information provider. More...

#include <CallsProvider.h>

Inheritance diagram for ZDK_NET::CallsProvider:
ZDK_NET::ZHandle

Public Member Functions

 CallsProvider (ZDK::Shared::CallsProvider src)
 
void SetActiveCall (ZDK_NET::Call^ call, ZDK_NET::ActiveCallChange callChange)
 Sets the currently active call and specifies what to happen with all the rest calls (if any) More...
 
ZDK_NET::CallCreateCallWithDefaultAccount (System::String^ calleeNumber, bool video)
 Creates a call with the default account. More...
 
void AddActiveCallListener (ZDK_NET::CallsProviderEventsHandler^ value)
 Adds a new calls provider event listener. More...
 
void DropActiveCallListener (ZDK_NET::CallsProviderEventsHandler^ value)
 Removes a specific already added calls provider event listener. More...
 
virtual long long Handle () override
 
virtual void Initialize () override
 
virtual void ReleaseReference () override
 

Public Attributes

ZDK::ICallsProvider * cppRef = nullptr
 

Properties

ZDK_NET::CallActiveCall [get]
 Gets the currently active call. More...
 
List< Call^>^ Calls [get]
 Gets a list with all calls. More...
 
int CallsCount [get]
 Gets the count of all calls. More...
 

Detailed Description

Active calls information provider.

Member Function Documentation

◆ AddActiveCallListener()

void ZDK_NET::CallsProvider::AddActiveCallListener ( ZDK_NET::CallsProviderEventsHandler value)

Adds a new calls provider event listener.

All added listeners will be notified for each event.

Parameters
[in]valueThe calls provider event listener to be added
See also
CallsProviderEventsHandler, DropActiveCallListener()

◆ CreateCallWithDefaultAccount()

ZDK_NET::Call ^ ZDK_NET::CallsProvider::CreateCallWithDefaultAccount ( System::String^  calleeNumber,
bool  video 
)

Creates a call with the default account.

Creates a call with the AccountProvider's DefaultAccount().

Parameters
[in]calleeNumberThe number to be dialed
[in]videoIndicator whether the call to have video or not
Returns
The call
See also
Call, DefaultAccount()

◆ DropActiveCallListener()

void ZDK_NET::CallsProvider::DropActiveCallListener ( ZDK_NET::CallsProviderEventsHandler value)

Removes a specific already added calls provider event listener.

All added/left listeners will be notified for each event.

Parameters
[in]valueThe calls provider event listener to be removed
See also
CallsProviderEventsHandler, AddActiveCallListener()

◆ SetActiveCall()

void ZDK_NET::CallsProvider::SetActiveCall ( ZDK_NET::Call call,
ZDK_NET::ActiveCallChange  callChange 
)

Sets the currently active call and specifies what to happen with all the rest calls (if any)

NOTE!!! Does NOT change the new active call's state! It is up to the API user to decide what to do with it!

Parameters
[in]callThe currently active call
[in]callChangeThe action to be taken for all of the rest calls (if any)
See also
Call, ActiveCallChange

Property Documentation

◆ ActiveCall

ZDK_NET:: Call^ ZDK_NET::CallsProvider::ActiveCall
get

Gets the currently active call.

Returns
The currently active call
See also
Call

◆ Calls

List< Call^>^ ZDK_NET::CallsProvider::Calls
get

Gets a list with all calls.

Returns
List with all calls
See also
Call

◆ CallsCount

int ZDK_NET::CallsProvider::CallsCount
get

Gets the count of all calls.

Returns
The number of all calls

The documentation for this class was generated from the following file: