Method Summary
|
onCompleted
(
|
The onCompleted function is called when the asynchronous operation has completed.
The final result will be available as the property |
|
onError
(
|
The onError function is called if the asynchronous operation has failed. The error code
will be available as the property |
|
onProgress
(
|
The onProgress function is called to indicate that the asynchronous operation has progressed.
The progress (in percent) is available as the property |
|
onResult
(
|
The onResult is called when there is a new or updated result from the asynchronous operation. |
Methods
The onCompleted function is called when the asynchronous operation has completed.
The final result will be available as the property result on the operation object
Parameters:
-
Name Type Description operationToiAsynchronousOperation The object representing the asynchronous operation.
The onError function is called if the asynchronous operation has failed. The error code
will be available as the property errorCode on the operation object.
Parameters:
-
Name Type Description operationToiAsynchronousOperation The object representing the asynchronous operation.
The onProgress function is called to indicate that the asynchronous operation has progressed.
The progress (in percent) is available as the property progress on the operation object.
Parameters:
-
Name Type Description operationToiAsynchronousOperation The object representing the asynchronous operation.
The onResult is called when there is a new or updated result from the asynchronous operation.
Parameters:
-
Name Type Description operationToiAsynchronousOperation The object representing the asynchronous operation.
resultThe incremental result for the operation. The type of result depends on which asynchronous operation has completed. See the documentation for the function where the callbacks were registered for more information.