Frontmatter
| id | 5171 |
| title | Event orientationchange |
| state | Closed |
| labels | enhancement |
| assignees | [] |
| createdAt | Dec 12, 2023, 1:31 PM |
| updatedAt | Dec 12, 2023, 1:42 PM |
| githubUrl | https://github.com/neomjs/neo/issues/5171 |
| author | Dinkh |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 12, 2023, 1:42 PM |
Event orientationchange

Dinkh
Dec 12, 2023, 1:42 PM
Will be solved in the next version
@example
const me = this,
orientation = await Neo.Main.getByPath({path: 'window.orientation'});
if ((orientation % 180) !== 0) me.component.isLoading = 'Please rotate device';
me.component.app.on('orientationchange', me.onOrientationChange, me);
data = {
orientation: 90,
layout: 'landscape'
}
Dinkh closed this issue on Dec 12, 2023, 1:42 PM
For mobile development, we need the orientationchange event as a global event.