Package com.avaya.clientservices.call
Interface CallCompletionHandler
-
public interface CallCompletionHandler
Defines an interface that the client application needs to implement to receive the result of an operation requested on various call and collaboration related methods. This listener may be implemented as an anonymous class to receive initial feedback about the outcome of a previously invoked operation by the application. It should be noted that not all operations take in a listener as input argument. Certain operations such as Call.start() do not take an input listener because the CallListener callbacks provide enough information about the status of the call start. It should also be noted that call to onSuccess() almost always results in a separate callback (through, for example, CallListener) to inform all listeners about a status change. This is unlike onError() where only the CompletionListener is informed of the result of the operation because the status of the object that the operation was invoked on does not change.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onError(CallException error)
Reports that the operation is pending approval with status code ofCallError.PENDING_APPROVAL
or the operation has failed.void
onSuccess()
Reports that the operation was successfully completed.
-
-
-
Method Detail
-
onSuccess
void onSuccess()
Reports that the operation was successfully completed.
-
onError
void onError(CallException error)
Reports that the operation is pending approval with status code ofCallError.PENDING_APPROVAL
or the operation has failed.- Parameters:
error
- Information about failure details.
-
-