sud.hideLoading
Closes the loading indicator displayed by sud.showLoading.
javascript
sud.hideLoading(object);Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| success | function | No | Called on success; no additional result fields |
| fail | function | No | Called on failure; see the fields below |
| complete | function | No | Called after success or failure, with no arguments |
Failure Callback Parameters
| Property | Type | Description |
|---|---|---|
| errCode | number | Error code |
| errMsg | string | Error description |
Usage Notes
Confirm that the target app supports this UI feature before using it. Call this API when the business task ends, including when it fails or is canceled.
Example
javascript
sud.hideLoading({
fail(error) {
console.error('Failed to hide loading indicator', error.errCode, error.errMsg);
}
});