CallConnection Class
- java.
lang. Object - com.
azure. communication. callautomation. CallConnection
- com.
public final class CallConnection
CallConnection for mid-call actions
Method Summary
Methods inherited from java.lang.Object
Method Details
addParticipant
public AddParticipantResult addParticipant(CallInvite participant)
Add a participant to the call.
Parameters:
Returns:
addParticipantWithResponse
public Response<AddParticipantResult> addParticipantWithResponse(AddParticipantOptions addParticipantOptions, Context context)
Add a participant to the call.
Parameters:
Returns:
cancelAddParticipantOperation
public CancelAddParticipantOperationResult cancelAddParticipantOperation(String invitationId)
Cancel add participant operation request.
Parameters:
Returns:
cancelAddParticipantOperationWithResponse
public Response<CancelAddParticipantOperationResult> cancelAddParticipantOperationWithResponse(CancelAddParticipantOperationOptions cancelAddParticipantOperationOptions, Context context)
Cancel add participant operation request.
Parameters:
Returns:
getCallMedia
public CallMedia getCallMedia()
Returns an object of CallContent
Returns:
getCallProperties
public CallConnectionProperties getCallProperties()
Get call connection properties.
Returns:
getCallPropertiesWithResponse
public Response<CallConnectionProperties> getCallPropertiesWithResponse(Context context)
Get call connection properties.
Parameters:
Returns:
getParticipant
public CallParticipant getParticipant(CommunicationIdentifier targetParticipant)
Get a specific participant.
Parameters:
Returns:
getParticipantWithResponse
public Response<CallParticipant> getParticipantWithResponse(CommunicationIdentifier targetParticipant, Context context)
Get all participants.
Parameters:
Returns:
hangUp
public void hangUp(boolean isForEveryone)
Hangup a call.
Parameters:
hangUpWithResponse
public Response<Void> hangUpWithResponse(boolean isForEveryone, Context context)
Hangup a call.
Parameters:
Returns:
listParticipants
public PagedIterable<CallParticipant> listParticipants()
Get all participants.
Returns:
listParticipants
public PagedIterable<CallParticipant> listParticipants(Context context)
Get all participants.
Parameters:
Returns:
muteParticipant
public MuteParticipantResult muteParticipant(CommunicationIdentifier targetParticipant)
Mutes a participant in the call.
Parameters:
- Participant to be muted. Only ACS Users are currently supported.
Returns:
muteParticipantWithResponse
public Response<MuteParticipantResult> muteParticipantWithResponse(MuteParticipantOptions options, Context context)
Mutes a participant in the call.
Parameters:
- Options for the request.
Returns:
removeParticipant
public RemoveParticipantResult removeParticipant(CommunicationIdentifier participantToRemove)
Remove a participant from the call.
Parameters:
Returns:
removeParticipantWithResponse
public Response<RemoveParticipantResult> removeParticipantWithResponse(RemoveParticipantOptions removeParticipantOptions, Context context)
Remove a participant from the call.
Parameters:
Returns:
transferCallToParticipant
public TransferCallResult transferCallToParticipant(CommunicationIdentifier targetParticipant)
Transfer the call to a participant.
Parameters:
Returns:
transferCallToParticipantWithResponse
public Response<TransferCallResult> transferCallToParticipantWithResponse(TransferCallToParticipantOptions transferCallToParticipantOptions, Context context)
Transfer the call to a participant.
Parameters:
Returns: