CallClient Class
- java.
lang. Object - com.
azure. android. communication. calling. CallClient
- com.
public class CallClient
This is the main class representing the entrypoint for the Calling SDK.
Constructor Summary
Constructor | Description |
---|---|
CallClient() |
Creates a new instance with a default configuration |
CallClient(CallClientOptions options) |
Creates a new instance with CallClientOptions |
Method Summary
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Call |
createCallAgent(final android.content.Context appContext, com.azure.android.communication.common.CommunicationTokenCredential communicationTokenCredential, com.azure.android.communication.calling.CallAgentOptions callAgentOptions)
Factory method for creating a CallAgent. |
CompletableFuture<Call |
createCallAgent(final android.content.Context appContext, com.azure.android.communication.common.CommunicationTokenCredential communicationTokenCredential)
Factory method for creating a CallAgent. |
void |
dispose()
Releases all the resources held by CallAgent. CallAgent should be destroyed/nullified after dispose. |
void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
Call |
getDebugInfo()
Retrieves the DebugInfo class, which is an interface to Debugging/Support helpers such as retrieving files for support |
CompletableFuture<Device |
getDeviceManager(final android.content.Context context)
Gets a device manager object that can be used to enumerates audio and video devices available for calls. |
Constructor Details
CallClient
public CallClient()
Creates a new instance with a default configuration
CallClient
public CallClient(CallClientOptions options)
Creates a new instance with CallClientOptions
Parameters:
Method Details
createCallAgent
public CompletableFuture
Factory method for creating a CallAgent.
Parameters:
Returns:
createCallAgent
public CompletableFuture
Factory method for creating a CallAgent.
Parameters:
Returns:
dispose
public void dispose()
Releases all the resources held by CallAgent. CallAgent should be destroyed/nullified after dispose.
finalize
protected void finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
getDebugInfo
public CallDebugInfo getDebugInfo()
Retrieves the DebugInfo class, which is an interface to Debugging/Support helpers such as retrieving files for support
getDeviceManager
public CompletableFuture
Gets a device manager object that can be used to enumerates audio and video devices available for calls.
Parameters:
Returns: