public interface Call
The application can create an outgoing call by calling Phone
.dial function:
The application can receive an incoming call on Phone.IncomingCallListener
:
Phone
Modifier and Type | Interface and Description |
---|---|
static class |
Call.AudioOutputMode
The options to switch audio output during a call.
|
static class |
Call.CallStatus
The status of a Call.
|
static class |
Call.Direction
The enumeration of directions of a call
|
static class |
Call.VideoRenderMode
The options to specify how the video adjusts its content to be render in a view.
|
static class |
Call.WaitReason
The reasons for the call is waiting.
|
Modifier and Type | Method and Description |
---|---|
void |
acknowledge(CompletionHandler<java.lang.Void> callback)
Acknowledge (without answering) an incoming call.
|
void |
answer(MediaOption option,
CompletionHandler<java.lang.Void> callback)
Answers this call.
|
void |
closeAuxStream(android.view.View view)
Close the indicated auxiliary stream.
|
CallMembership |
getActiveSpeaker()
Get the current active speaker
|
AuxStream |
getAuxStream(android.view.View view)
Get an indicated auxiliary stream.
|
int |
getAvailableAuxStreamCount()
Get the count of current available auxiliary streams
|
Call.Direction |
getDirection() |
Phone.FacingMode |
getFacingMode() |
CallMembership |
getFrom() |
android.util.Size |
getLocalVideoViewSize() |
java.util.List<CallMembership> |
getMemberships() |
MultiStreamObserver |
getMultiStreamObserver()
Get the observer for the events of multi-stream in this call
|
CallObserver |
getObserver() |
int |
getOpenedAuxStreamCount()
Get the count of already opened auxiliary streams
|
android.util.Size |
getRemoteVideoViewSize() |
java.util.Set<CallSchedule> |
getSchedules()
Returns the schedules of this call if this call has one or more schedules.
|
android.view.View |
getSharingRenderView() |
android.util.Size |
getSharingViewSize() |
java.lang.String |
getSpaceId()
Return the associated space of this call
|
Call.CallStatus |
getStatus() |
CallMembership |
getTo() |
android.util.Pair<android.view.View,android.view.View> |
getVideoRenderViews() |
void |
hangup(CompletionHandler<java.lang.Void> callback)
Disconnects this call.
|
boolean |
isReceivingAudio() |
boolean |
isReceivingSharing() |
boolean |
isReceivingVideo() |
boolean |
isRemoteSendingAudio() |
boolean |
isRemoteSendingSharing() |
boolean |
isRemoteSendingVideo() |
boolean |
isSendingAudio() |
boolean |
isSendingDTMFEnabled() |
boolean |
isSendingSharing() |
boolean |
isSendingVideo() |
void |
letIn(CallMembership membership)
Admit a CallMembership into the meeting from the lobby.
|
void |
letIn(java.util.List<CallMembership> memberships)
Admit CallMemberships into the meeting from the lobby.
|
void |
openAuxStream(android.view.View view)
Open a new auxiliary stream with a view.
|
void |
reject(CompletionHandler<java.lang.Void> callback)
Rejects this call.
|
void |
sendDTMF(java.lang.String dtmf,
CompletionHandler<java.lang.Void> callback)
Sends DTMF events to the remote party.
|
void |
sendFeedback(int rating,
java.lang.String comment)
Sends feedback for this call to Cisco Webex team.
|
void |
setCompositedVideoLayout(MediaOption.CompositedVideoLayout layout)
Specify the composited video layout for the active speaker and other attendees in the group video meeting.
|
void |
setCompositedVideoLayout(MediaOption.CompositedVideoLayout layout,
CompletionHandler<java.lang.Void> callback)
Specify the composited video layout for the active speaker and other attendees in the group video meeting.
|
void |
setFacingMode(Phone.FacingMode facingMode) |
void |
setMultiStreamObserver(MultiStreamObserver observer)
Set the observer for the events of multi-stream in this call
|
void |
setObserver(CallObserver observer) |
void |
setReceivingAudio(boolean receiving) |
void |
setReceivingSharing(boolean receiving) |
void |
setReceivingVideo(boolean receiving) |
void |
setRemoteVideoRenderMode(Call.VideoRenderMode mode)
Specify how the remote video adjusts its content to be render in a view.
|
void |
setSendingAudio(boolean sending) |
void |
setSendingSharing(boolean sending) |
void |
setSendingVideo(boolean sending) |
void |
setSharingRenderView(android.view.View view) |
void |
setVideoLayout(MediaOption.CompositedVideoLayout layout)
Deprecated.
|
void |
setVideoRenderViews(android.util.Pair<android.view.View,android.view.View> videoRenderViews) |
void |
startSharing(CompletionHandler<java.lang.Void> callback)
Deprecated.
|
void |
startSharing(android.app.Notification notification,
int notificationId,
CompletionHandler<java.lang.Void> callback)
Start content sharing.
|
void |
stopSharing(CompletionHandler<java.lang.Void> callback)
Stop content sharing.
|
void |
switchAudioOutput(Call.AudioOutputMode audioOutputMode)
Switch the audio play output mode during a call.
|
Phone.FacingMode getFacingMode()
void setFacingMode(Phone.FacingMode facingMode)
facingMode
- The camera facing mode.Call.Direction getDirection()
Call.CallStatus getStatus()
void setObserver(CallObserver observer)
observer
- Observer for the events of this callCallObserver getObserver()
java.lang.String getSpaceId()
java.util.List<CallMembership> getMemberships()
CallMembership getFrom()
CallMembership getTo()
java.util.Set<CallSchedule> getSchedules()
void setRemoteVideoRenderMode(Call.VideoRenderMode mode)
mode
- the remote video render modevoid setVideoLayout(MediaOption.CompositedVideoLayout layout)
setCompositedVideoLayout(MediaOption.CompositedVideoLayout)
layout
- the video layout modevoid setCompositedVideoLayout(MediaOption.CompositedVideoLayout layout)
layout
- the composited video layout modevoid setCompositedVideoLayout(MediaOption.CompositedVideoLayout layout, @Nullable CompletionHandler<java.lang.Void> callback)
layout
- the composited video layout modecallback
- A closure to be executed when completed, with error if the invocation is illegal or failed, otherwise nil.android.util.Size getLocalVideoViewSize()
android.util.Size getRemoteVideoViewSize()
android.util.Size getSharingViewSize()
boolean isRemoteSendingVideo()
boolean isRemoteSendingAudio()
boolean isRemoteSendingSharing()
boolean isSendingVideo()
void setSendingVideo(boolean sending)
sending
- True if this call is sending video. Otherwise, false.boolean isSendingAudio()
void setSendingAudio(boolean sending)
sending
- True if this call is sending audio. Otherwise, false.boolean isReceivingVideo()
void setReceivingVideo(boolean receiving)
receiving
- True if the local party of this *call* is receiving video. Otherwise, false.boolean isReceivingAudio()
void setReceivingAudio(boolean receiving)
receiving
- True if the local party of this *call* is receiving audio. Otherwise, false.boolean isReceivingSharing()
void setReceivingSharing(boolean receiving)
receiving
- True if the local party of this *call* is receiving content sharing. Otherwise, false.android.util.Pair<android.view.View,android.view.View> getVideoRenderViews()
void setVideoRenderViews(@Nullable android.util.Pair<android.view.View,android.view.View> videoRenderViews)
videoRenderViews
- render views for local and remote video of this call. If is nil, it will update the video state as inactive to the server side.android.view.View getSharingRenderView()
void setSharingRenderView(android.view.View view)
view
- The render view for the remote content sharing of this call. If is nil, it will update the content sharing state as inactive to the server side.void acknowledge(@NonNull CompletionHandler<java.lang.Void> callback)
callback
- A closure to be executed when completed, with error if the invocation is illegal or failed, otherwise nil.Call.CallStatus
void answer(@NonNull MediaOption option, @NonNull CompletionHandler<java.lang.Void> callback)
option
- Intended media options - audio only or audio and video - for the call.callback
- A closure to be executed when completed, with error if the invocation is illegal or failed, otherwise nil.Call.CallStatus
void reject(@NonNull CompletionHandler<java.lang.Void> callback)
callback
- A closure to be executed when completed, with error if the invocation is illegal or failed, otherwise nil.Call.CallStatus
void hangup(@NonNull CompletionHandler<java.lang.Void> callback)
callback
- A closure to be executed when completed, with error if the invocation is illegal or failed, otherwise nil.Call.CallStatus
boolean isSendingDTMFEnabled()
void sendDTMF(java.lang.String dtmf, @NonNull CompletionHandler<java.lang.Void> callback)
dtmf
- any combination of valid DTMF events matching regex mattern "^[0-9#\*abcdABCD]+$"callback
- A closure to be executed when completed, with error if the invocation is illegal or failed, otherwise nil.void sendFeedback(int rating, @Nullable java.lang.String comment)
rating
- The rating of the quality of this call between 1 and 5 where 5 means excellent quality.comment
- The comments for this call.void startSharing(@NonNull CompletionHandler<java.lang.Void> callback)
startSharing(Notification, int, CompletionHandler)
void startSharing(@Nullable android.app.Notification notification, int notificationId, @NonNull CompletionHandler<java.lang.Void> callback)
notification
- The foreground notification when sharing, take effect if targetSdkVersion is 29 or higher.notificationId
- The id of this notification, take effect if targetSdkVersion is 29 or higher, must a positive number.callback
- A closure to be executed when completed, with error if the invocation is illegal or failed, otherwise nil.void stopSharing(@NonNull CompletionHandler<java.lang.Void> callback)
boolean isSendingSharing()
void setSendingSharing(boolean sending)
sending
- True if this call is sharing content. Otherwise, false.void openAuxStream(@NonNull android.view.View view)
MultiStreamObserver.onAuxStreamAvailable()
to open an available auxiliary streamview
- the view to be rendering upon an auxiliary streamvoid closeAuxStream(@NonNull android.view.View view)
MultiStreamObserver.onAuxStreamUnavailable()
to close an opened auxiliary streamview
- the view rendering upon an auxiliary streamAuxStream getAuxStream(@NonNull android.view.View view)
view
- the view rendering upon an auxiliary streamint getAvailableAuxStreamCount()
int getOpenedAuxStreamCount()
CallMembership getActiveSpeaker()
void setMultiStreamObserver(MultiStreamObserver observer)
MultiStreamObserver getMultiStreamObserver()
void letIn(@NonNull CallMembership membership)
membership
- the call membership that waiting in lobby.void letIn(@NonNull java.util.List<CallMembership> memberships)
memberships
- the call memberships that waiting in lobby.void switchAudioOutput(Call.AudioOutputMode audioOutputMode)
audioOutputMode
- the audio play output mode during a call.