IncomingCall Class
- java.
lang. Object - com.
azure. android. communication. calling. IncomingCall
- com.
public class IncomingCall
Describes an incoming call
Method Summary
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Call> |
accept(android.content.Context context, AcceptCallOptions acceptCallOptions)
Accept an incoming call with the ability to specify the accept call options |
CompletableFuture<Call> |
accept(android.content.Context context)
Accept an incoming call with default options (audio on; video off) |
void |
addOnCallEndedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnCallEnded events. OnCallEnded Event. Occurs when recording incoming call was not answered and call ended. |
void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
Call |
getCallEndReason()
Describe the reason why a call has ended |
Caller |
getCallerInfo()
Information about the caller |
String |
getId()
Id of the call |
boolean |
isVideoEnabled()
Is incoming video enabled |
CompletableFuture<Void> |
reject()
Reject this incoming call |
void |
removeOnCallEndedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnCallEnded events. OnCallEnded Event. Occurs when recording incoming call was not answered and call ended. |
Method Details
accept
public CompletableFuture
Accept an incoming call with the ability to specify the accept call options
Parameters:
Returns:
accept
public CompletableFuture
Accept an incoming call with default options (audio on; video off)
Parameters:
Returns:
addOnCallEndedListener
public void addOnCallEndedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnCallEnded events. OnCallEnded Event. Occurs when recording incoming call was not answered and call ended.
Parameters:
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.
getCallEndReason
public CallEndReason getCallEndReason()
Describe the reason why a call has ended
getCallerInfo
public CallerInfo getCallerInfo()
Information about the caller
getId
public String getId()
Id of the call
isVideoEnabled
public boolean isVideoEnabled()
Is incoming video enabled
reject
public CompletableFuture
Reject this incoming call
removeOnCallEndedListener
public void removeOnCallEndedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnCallEnded events. OnCallEnded Event. Occurs when recording incoming call was not answered and call ended.
Parameters: