简体   繁体   中英

Retrieve orientation change event in blackberry webworks?

1) How to retrieve orientation change event in blackberry webworks ?

2) Can we change orientation programmatically at runtime using JavaScript?

There is a KB here for retrieving orientation change events: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Detect-screen-orientation-changes-using-JavaScript/ta-p/445755

Alternatively, you could listen for window.onresize.

You can not change the orientation programmatically at this time, but you can at compile time through the rim:orientation property: https://developer.blackberry.com/html5/documentation/rim_orientation_element_1594186_11.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM