Partilhar via


CallClient Class

  • java.lang.Object
    • com.azure.android.communication.calling.CallClient

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<CallAgent> 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<CallAgent> 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.

CallDebugInfo getDebugInfo()

Retrieves the DebugInfo class, which is an interface to Debugging/Support helpers such as retrieving files for support

CompletableFuture<DeviceManager> 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:

options

Method Details

createCallAgent

public CompletableFuture 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.

Parameters:

appContext - Context object for initialization purposes. Determine log file path, etc.
communicationTokenCredential - Object to manages user authentication token retrieval
callAgentOptions - Options for creating CallAgent

Returns:

The CallAgent object to manage calls for the authenticated user.

createCallAgent

public CompletableFuture createCallAgent(final android.content.Context appContext, com.azure.android.communication.common.CommunicationTokenCredential communicationTokenCredential)

Factory method for creating a CallAgent.

Parameters:

appContext - Context object for initialization purposes. Determine log file path, etc.
communicationTokenCredential - Object to manages user authentication token retrieval

Returns:

The CallAgent object to manage calls for the authenticated user.

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 getDeviceManager(final android.content.Context context)

Gets a device manager object that can be used to enumerates audio and video devices available for calls.

Parameters:

context - context object from application

Returns:

The DeviceManager object to manage video devices for calls.

Applies to