[TIMOB-9143] BlackBerry: Implement BB Application Menu (Crosscut Menu)
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-09-27T19:50:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 20, 2013 Sprint 20 API, Release 3.2.0 |
Components | BlackBerry |
Labels | qe-closed-3.2.0, qe-testadded, small |
Reporter | Josh Roesslein |
Assignee | Pedro Enrique |
Created | 2012-05-16T07:25:22.000+0000 |
Updated | 2013-12-18T23:47:10.000+0000 |
Description
On BB10 devices swiping from the top of the screen will display a menu bar of action items it is used to control not often use actions that apply (crosscut) across the entire app. See
https://developer.blackberry.com/cascades/reference/bb__Application.html#function-swipedown
https://developer.blackberry.com/cascades/documentation/ui/navigation/menus.html
Look at NativeWindowObject.cpp to see how to do ActionItems
The following is the Titanium API for the Application Menu:
Node: this creates a global menu for the entire app For information on limitations, please look here: http://developer.blackberry.com/native/documentation/cascades/ui/navigation/menus.html
PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/179
need more info
Paste this code in app.js
and run it. Once the app is running, slide your finger from the top of the phone down. As if you were dragging the status bar.
A side note, you need at least one window open. For testing, place this on app.js at the very top:
Tested the above code with: Appcelerator Studio, build: 3.2.0.201312091648 Titanium SDK, build: 3.2.0.v20131209192649 CLI 3.2.0-cr Alloy 1.3.0-cr BlackBerry Z10 10.1.0.2019