public class CallsProvider
extends java.lang.Object
Constructor and Description |
---|
CallsProvider(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
Call |
activeCall()
Gets the currently active call
|
void |
addActiveCallListener(CallsProviderEventsHandler value)
Adds a new calls provider event listener
All added listeners will be notified for each event.
|
java.util.List<Call> |
calls()
Gets a list with all calls
|
int |
callsCount()
Gets the count of all calls
|
Call |
createCallWithDefaultAccount(java.lang.String calleeNumber,
boolean video)
Creates a call with the default account
Creates a call with the AccountProvider's defaultAccount.
|
void |
dropActiveCallListener(CallsProviderEventsHandler value)
Removes a specific already added calls provider event listener
All added/left listeners will be notified for each event.
|
protected void |
finalize()
Ensures the underlying native object destruction
|
long |
handle()
Gets the pointer/address to the underlying native object
|
void |
setActiveCall(Call call,
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!
|
public CallsProvider(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public Call activeCall()
Call
public java.util.List<Call> calls()
Call
public int callsCount()
public void setActiveCall(Call call, ActiveCallChange callChange)
call
- The currently active callcallChange
- The action to be taken for all of the rest calls (if any)ActiveCallChange
public Call createCallWithDefaultAccount(java.lang.String calleeNumber, boolean video)
calleeNumber
- The number to be dialedvideo
- Indicator whether the call to have video or notdefaultAccount
public void addActiveCallListener(CallsProviderEventsHandler value)
value
- The calls provider event listener to be addeddropActiveCallListener
public void dropActiveCallListener(CallsProviderEventsHandler value)
value
- The calls provider event listener to be removedaddActiveCallListener