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

Native Development

Reply
Developer
Posts: 134
Registered: ‎02-24-2013
My Device: BlackBerry Z10 LE
My Carrier: Telcel
Accepted Solution

Invoking a specific tab using <invoke-target>

[ Edited ]

Hi everybody, I have a question..  is possible make a invoke-target property to open a specific tab or dialog from my app?

 

Thanks!

Developer
Posts: 16,750
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Invoking a specific tab using <invoke-target>

sure.
your app gets invoked with a certain payload, you analyze that and can display whatever you want.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Invoking a specific tab using <invoke-target>

As Simon says when your app is invoked you can recognise it is and then your application flow can go off in a different direction as in displaying a dialog or setting a different default Tab.

 

At it's simplest all you need is this in your applicationui constructor...

 

    bool connectResult = QObject::connect(mInvokeManager,
                    SIGNAL(invoked(const bb::system::InvokeRequest&)),
                    this,
                    SLOT(onInvoke(const bb::system::InvokeRequest&)));

 


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 134
Registered: ‎02-24-2013
My Device: BlackBerry Z10 LE
My Carrier: Telcel

Re: Invoking a specific tab using <invoke-target>

Thanks! Worked fine!