dlt.getStatusBarHeight
Introduction
Retrieve the status bar height.
Usage Restrictions
Supported in the basic library from version 3.0.0
onwards.
Parameters
Object object
Property | Type | Default | Required | Description |
---|---|---|---|---|
success | function | No | Callback function for a successful interface call | |
fail | function | No | Callback function for a failed interface call | |
complete | function | No | Callback function for the completion of the interface call (executed on both success and failure) |
object.success Callback Function
Parameters
Object res
Property | Type | Description |
---|---|---|
statusBarHeight | number | Status bar height in pixels |
Sample Code
dlt.getStatusBarHeight({
success(res) {
console.log(res.statusBarHeight);
},
});