Class CallAgentOptions
- Object
-
- CommonCallAgentOptions
-
- CallAgentOptions
-
public final class CallAgentOptions extends CommonCallAgentOptions
Options for creating CallAgent
-
-
Constructor Summary
Constructors Constructor Description CallAgentOptions()Creates a new instance with a default options
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayName()Specify the display name of the local participant for all new callsEmergencyCallOptionsgetEmergencyCallOptions()Emergency call options when creating a call agentIntegergetPushNotificationTtlInSeconds()Get push notification time-to-live value.CallAgentOptionssetDisableInternalPushForIncomingCall(boolean value)Determines whether to disable the internal push mechanism for delivering the push payload of an incoming call.CallAgentOptionssetDisplayName(String value)Specify the display name of the local participant for all new callsCallAgentOptionssetEmergencyCallOptions(EmergencyCallOptions value)Emergency call options when creating a call agentCallAgentOptionssetPushNotificationTtlInSeconds(Integer value)Sets time-to-live value for push notification.CallAgentOptionssetTelecomManagerOptions(TelecomManagerOptions value)TelecomManager options-
Methods inherited from class CommonCallAgentOptions
finalize, getTelecomManagerOptions, isDisableInternalPushForIncomingCall
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Specify the display name of the local participant for all new calls
-
setDisplayName
public CallAgentOptions setDisplayName(String value)
Specify the display name of the local participant for all new calls- Parameters:
value- The new value.
-
getEmergencyCallOptions
public EmergencyCallOptions getEmergencyCallOptions()
Emergency call options when creating a call agent
-
setEmergencyCallOptions
public CallAgentOptions setEmergencyCallOptions(EmergencyCallOptions value)
Emergency call options when creating a call agent- Parameters:
value- The new value.
-
setDisableInternalPushForIncomingCall
public CallAgentOptions setDisableInternalPushForIncomingCall(boolean value)
Determines whether to disable the internal push mechanism for delivering the push payload of an incoming call. There are two ways that a push payload of an incoming call can be delivered to the callee: 1. By using Firebase Cloud Messaging (FCM) and registering the device token with the API `registerPushNotification` method on `CallAgent` or `TeamsCallAgent`. 2. When a `CallAgent` or `TeamsCallAgent` is created, the SDK also internally registers with our internal push service to receive the push payload. By default, the internal push is enabled. To exclusively use FCM and disable the internal push, set this parameter to `true`.- Overrides:
setDisableInternalPushForIncomingCallin classCommonCallAgentOptions- Parameters:
value- The new value.
-
setTelecomManagerOptions
public CallAgentOptions setTelecomManagerOptions(TelecomManagerOptions value)
TelecomManager options- Overrides:
setTelecomManagerOptionsin classCommonCallAgentOptions- Parameters:
value- The new value.
-
getPushNotificationTtlInSeconds
public Integer getPushNotificationTtlInSeconds()
Get push notification time-to-live value.- Returns:
- The time-to-live (TTL) value in seconds.
-
setPushNotificationTtlInSeconds
public CallAgentOptions setPushNotificationTtlInSeconds(Integer value)
Sets time-to-live value for push notification.- Parameters:
value- Time-to-live in seconds.- Returns:
- The resulting TeamsCall object.
-
-