mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 16:35:33 +00:00
38 lines
632 B
Markdown
38 lines
632 B
Markdown
---
|
|
title: KMManager.getBannerHeight()
|
|
---
|
|
|
|
## Summary
|
|
|
|
The **`getBannerHeight()`** method returns the height of the suggestion
|
|
banner.
|
|
|
|
## Syntax
|
|
|
|
``` javascript
|
|
KMManager.getBannerHeight(Context context)
|
|
```
|
|
|
|
### Parameters
|
|
|
|
`context`
|
|
: The context.
|
|
|
|
### Returns
|
|
|
|
Returns the height of the suggestion banner frame in
|
|
*density-independent pixel (dp)*.
|
|
|
|
## Description
|
|
|
|
Use this method to get the height of the suggestion banner frame.
|
|
|
|
## Examples
|
|
|
|
### Example: Using `getBannerHeight()`
|
|
|
|
The following script illustrate the use of `getBannerHeight()`:
|
|
|
|
``` javascript
|
|
int bannerHeight = KMManager.getBannerHeight(this);
|
|
```
|