Method Summary
|
onCompleted
(
|
The onCompleted() function is called when the asynchronous operation has completed.
The final result (if any) 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() function 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 (if any) will be available as the property result in 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 in 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 in the operation object.
Parameters:
-
Name Type Description operationToiAsynchronousOperation The object representing the asynchronous operation.
The onResult() function 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. Its property
resultcontains the sum of all incremental results received so far.resultThe incremental result for the operation. The type of result depends on which asynchronous operation that is executing. For more information, see the documentation for the function that initiated the asynchronous operation.