Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Visitor
Posts: 1
Registered: ‎07-09-2013
My Device: Blackberry 10
My Carrier: None

qnx classess missing or moved

Hi:

I am trying to port the code of a running application from Blackberry Playbook to Blackberry 10 and I am running into problems where the classes or methods are missing or moved. One example is the AlertDialog which on Blackberry 10 was on "import qnx.dialog.AlertDialog" now it is on "import qnx.fuse.ui.dialog.AlertDialog". I can not find the equivalent of "import qnx.input.IMFConnection". Where can I find this information? Where are these classes? What has changed? Why were this classes moved? Thanks for any help that you can provide.

Developer
Posts: 1,269
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: qnx classess missing or moved

Search is not as good as it could be on the API doc pages or on the forums, but yet a quick search for the IMFConnection yielded this thread:

 

http://supportforums.blackberry.com/t5/Adobe-AIR-Development/SDK-2-IMFConnection-and-IMFKeyboardOpti...

 

The class was apparently private and undocumented, and so it was removed.

 

One good way to search the API docs is to use a bit of Google-Fu such as typing e.g. the following into your Google search box:

 

<name of some class you need info on>  site:https://developer.blackberry.com/air/

 

and then be wary of which platform's API docs you are viewing (review the state of the "Platform" button in the upper left of the page of the API docs).

Highlighted
Developer
Posts: 508
Registered: ‎01-19-2011
My Device: My Trusty Red Plane
My Carrier: Outer Space

Re: qnx classess missing or moved

This example shows you how you should use an aletrdialog now:

 

https://developer.blackberry.com/air/documentation/bb10/create_alert_dialog.html

 

If you used IMFConnection before, I guess you used it to hide the keyboard (I did so too). I think you can also hide the keyboard by setting the focus of your current stage to null

-----------------------------------------------------------------------
I'm a bird from outer space. But I'm not flappy o.o