HomeDocs
Skip to main content

dlt.onKeyboardHeightChange

Introduction​

The dlt.onKeyboardHeightChange function is used to listen for changes in the keyboard's height.

Parameters​

Object object​

PropertyTypeDefaultRequiredDescription
successfunctionNoCallback function for a successful call.
failfunctionNoCallback function for a failed call.
completefunctionNoCallback function for the call's completion (executed for both successful and failed calls).

success Callback Function Parameters​

Object res​

PropertyTypeDescription
heightnumberKeyboard height

Sample Code​

dlt.onKeyboardHeightChange({
success(res) {
console.log(res.height);
},
});
Privacy agreementDeveloper agreementcontact us: developer_private.mi@dlightek.com © 2024 MiniApp. All Rights Reserved.