dlt.cancelBackExitInterceptor
Introduction
Cancel a previously registered but unused exit interceptor.
Parameters
Object object
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| success | function | No | Callback function that is called when the interceptor is successfully canceled. | |
| fail | function | No | Callback function that is called when the interface call fails. | |
| complete | function | No | Callback function that is called when the interface call is complete, whether it succeeds or fails. |
Sample Code
Page({
onLoad() {
dlt.cancelBackExitInterceptor({
success: function (res) {
// Canceled successfully
},
fail: function (res) {
// Failed to cancel
},
complete: function (res) {},
});
},
});