Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

BB10 onExit() method #150

Open
astanley opened this issue Mar 21, 2013 · 1 comment
Open

BB10 onExit() method #150

astanley opened this issue Mar 21, 2013 · 1 comment

Comments

@astanley
Copy link

I wish there was an onExit() method for BB10 that let applications detect when the application is about to exit:

https://developer.blackberry.com/html5/apis/blackberry.app.event.html#.onExit

I asked Rob if he knew whether this was possible in native, and he mentioned "If you don’t have a BB::Application instance, you can listen for bps navigator events";

https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_ref/topic/navigator_8h_1bps_navigator_events.html

This would require setting up an event loop, like this:
https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_ref/topic/overview.html

However - I don't think this shows how to intercept the event shutting down, only detect the actual event.

@peardox
Copy link
Contributor

peardox commented Oct 31, 2013

I've got a BPS event loop working at last but for some reason the only navigator event that ever gets as far as the test extension's handler is NAVIGATOR_DEVICE_LOCK_STATE (absolutely nothing else)

I notice that most other navigator events are handled by WW internal extensions so maybe it's killing them higher up (naughty if true)

Anyway, we never get a NAVIGATOR_EXIT (or anything else useful) from what I can see which is disappointing

Still a BPS event loop is useful in other cases so not a complete waste of time

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants