IncomingCall Class

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

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.

CallEndReason getCallEndReason()

Describe the reason why a call has ended

CallerInfo 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(android.content.Context context, AcceptCallOptions acceptCallOptions)

Accept an incoming call with the ability to specify the accept call options

Parameters:

context - Android application context object
acceptCallOptions - Options for call Accepting the call

Returns:

CompletableFuture<Call> representing a completableFuture of the resulting call object

accept

public CompletableFuture accept(android.content.Context context)

Accept an incoming call with default options (audio on; video off)

Parameters:

context - Android application context object

Returns:

CompletableFuture<Call> representing a completableFuture of the resulting call object

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:

listener

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()

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:

listener

Applies to