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
Philipk
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook

Invoke detect if no cards available

Currently I have a function which invokes a card.

 

I want to change it from a void function to one that returns true on success and false if no card is availible.

 

How can I check if the invoke request was successful?

 

voidApplicationUI::invokeFile(constQString &fileName) {

InvokeManager* invokeManager = newInvokeManager();

InvokeRequest cardRequest;

cardRequest.setUri("file:///"+fileName);

InvokeReply* reply = invokeManager->invoke(cardRequest);

qDebug() << invokeManager->invoke(cardRequest);

reply->setParent(this);

}

_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Developer
bmorr
Posts: 331
Registered: ‎04-13-2013
My Device: Z10

Re: Invoke detect if no cards available

Here's some information:

 

https://developer.blackberry.com/native/documentation/cascades/device_platform/invocation/card_invoc...

 

I'm kind of in the same boat, I don't know how to put the reply code with relation to the invokr code.