public class Context
extends java.lang.Object
Constructor and Description |
---|
Context(long handle)
Constructor storing the pointer/address to the underlying native object
|
Context(java.lang.Object ctx)
Constructor initializing the underlying native object
|
Modifier and Type | Method and Description |
---|---|
AccountProvider |
accountProvider()
Gets the account information and control provider
Manages creation and destruction of user accounts and provides information regarding them.
|
Activation |
activation()
Gets the ZDK's Activation process handler
|
Result |
addProtocol(ProtocolType proto,
int port)
Creates a call manager instance for a protocol
Creates a call manager instance for a specific protocol.
|
AudioEndpointControl |
audioControls()
Gets the audio endpoint's main entry point
Entry point for controlling the audio endpoint
|
BanafoManager |
banafoManager()
Gets the ZDK's Banafo manager
|
CallsProvider |
callsProvider()
Gets the active calls information provider
|
ConferenceProvider |
conferenceProvider()
Gets the conference controlling helper
|
ContextConfiguration |
configuration()
Gets the general ZDK/Context configuration
The configuration is applied with startContext! Any changes after startContext has been invoked will not take
effect until a restart happens - stopContext followed by startContext.
|
boolean |
contextRunning()
Returnes whether the context is running and functional
|
DNSRequestProvider |
dnsRequestProvider()
Gets the DNS resolving requests provider
|
EncryptionConfiguration |
encryptionConfiguration()
Gets the encription specific configuration
|
protected void |
finalize()
Ensures the underlying native object destruction
|
void |
forceNativeCrash(int delayMs)
Force native crash
Forces a native crash to take place.
|
long |
handle()
Gets the pointer/address to the underlying native object
|
java.lang.String |
libraryVersion()
Get the ZDK version
Get the revision of the ZDK's source last commit.
|
Log |
logger()
Gets the ZDK's debug logging facility instance
Only a single instance of the debug logging facility is created and returned during the life time of the library.
|
Result |
networkChanged()
Notify the ZDK for changed network event
Handles the network change event - resets the DNS, re-register users, refreshes active calls, etc.
|
ProxyManager |
proxyManager()
Gets the ZDK's proxy manager
|
RingBackToneControl |
ringback()
Ringback tone's main entry point
Entry point for controlling the ringback tone heard by the user when the remote peer starts ringing
|
void |
setStatusListener(ContextEventsHandler value)
Configures the context event listener
The set listener will be notified for each event.
|
Result |
startContext()
Initialize the ZDK
Create all internal structures, protocol stacks, network transports and event queues.
|
Result |
stopContext()
Destroys the ZDK
Closes network transports, terminates worker threads and frees all structures.
|
Result |
testSIPURI(java.lang.String sipUri) |
VideoEndpointControl |
videoControls()
Gets the video endpoint's main entry point
Entry point for controlling the video endpoint
|
public Context(java.lang.Object ctx)
ctx
- Android's contextpublic Context(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public boolean contextRunning()
public CallsProvider callsProvider()
CallsProvider
public AccountProvider accountProvider()
AccountProvider
public ConferenceProvider conferenceProvider()
ConferenceProvider
public DNSRequestProvider dnsRequestProvider()
DNSRequestProvider
public ContextConfiguration configuration()
ContextConfiguration
public EncryptionConfiguration encryptionConfiguration()
EncryptionConfiguration
public AudioEndpointControl audioControls()
AudioEndpointControl
public VideoEndpointControl videoControls()
VideoEndpointControl
public RingBackToneControl ringback()
RingBackToneControl
public Activation activation()
Activation
public Log logger()
Log
public ProxyManager proxyManager()
ProxyManager
public BanafoManager banafoManager()
BanafoManager
public java.lang.String libraryVersion()
public Result startContext()
Result
public Result stopContext()
Result
public Result addProtocol(ProtocolType proto, int port)
proto
- Protocolport
- Port at which to bind the main socket, or 0 for random port to be usedResult
public Result testSIPURI(java.lang.String sipUri)
public void setStatusListener(ContextEventsHandler value)
value
- The context event listener to be addedContextEventsHandler
public Result networkChanged()
Result
public void forceNativeCrash(int delayMs)
delayMs
- Delay in milliseconds. If 0 - crashes immediately!