Skip to content

sud.hideLoading ​

Closes the loading indicator displayed by sud.showLoading.

javascript
sud.hideLoading(object);

Parameters ​

PropertyTypeRequiredDescription
successfunctionNoCalled on success; no additional result fields
failfunctionNoCalled on failure; see the fields below
completefunctionNoCalled after success or failure, with no arguments

Failure Callback Parameters ​

PropertyTypeDescription
errCodenumberError code
errMsgstringError 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);
  }
});