Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add getOrientation, getWindowDensity, and getWindowSize APIs #1270

Merged
merged 3 commits into from
May 30, 2024

Conversation

darcywong00
Copy link
Contributor

@darcywong00 darcywong00 commented May 17, 2024

Follows #1268 and documents Keyman Engine for Android 18.0 API's added from keymanapp/keyman#11436

TODO. Document some more API's from previous releases

  • lexicalModelExists()

Copy link
Member

@mcdurdin mcdurdin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nits only

developer/engine/android/18.0/KMManager/getOrientation.md Outdated Show resolved Hide resolved
developer/engine/android/18.0/KMManager/getOrientation.md Outdated Show resolved Hide resolved
developer/engine/android/18.0/KMManager/getOrientation.md Outdated Show resolved Hide resolved
Returns the window size (native resolution) of the display as (int x, int y).

## Description
Use this method to get the size of the entire display. It may or may not include [system decoration areas](https://developer.android.com/reference/android/view/Display)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we explain when it does or doesn't?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. I'll have to investigate if I need to iterate keymanapp/keyman#11436 and use the following for API 30+

https://developer.android.com/reference/android/view/WindowMetrics#getBounds()

developer/engine/android/18.0/KMManager/getWindowSize.md Outdated Show resolved Hide resolved
@mcdurdin mcdurdin added the docs label May 17, 2024
Base automatically changed from docs/android/engine-18-index-md to master May 17, 2024 07:18
@mcdurdin mcdurdin modified the milestones: A18S2, A18S3 May 24, 2024
@mcdurdin mcdurdin merged commit a374026 into master May 30, 2024
3 checks passed
@mcdurdin mcdurdin deleted the docs/android/size-18 branch May 30, 2024 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants