dlt.onKeyboardHeightChange
Introduction
The dlt.onKeyboardHeightChange function is used to listen for changes in the keyboard's height.
Parameters
Object object
| Property | Type | Default | Required | Description | 
|---|---|---|---|---|
| success | function | No | Callback function for a successful call. | |
| fail | function | No | Callback function for a failed call. | |
| complete | function | No | Callback function for the call's completion (executed for both successful and failed calls). | 
success Callback Function Parameters
Object res
| Property | Type | Description | 
|---|---|---|
| height | number | Keyboard height | 
Sample Code
dlt.onKeyboardHeightChange({
  success(res) {
    console.log(res.height);
  },
});