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
Highlighted
Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 Limited Edition and Dev Alpha C
My Carrier: Movistar-Venezuela

hello friends i have problems witch socialInvocation

I'm using the new example they published a few hours ago, try to integrate it with my application but I have problems with the following

 

               Button {
            id: btnPostText
            text: qsTr("Publicar")
            visible: (picker.selectedFile != "")
            onClicked: {
                _socialInvocation.invoke(invokeTarget, "bb.action.SHARE",
                                         "image/jpeg",
                                         "file://" + picker.selectedFile)
            }
        }

 I declare in the scope

 

_socialInvocation.invoke(invokeTarget,

but I have no idea ....

 


Follow me in Twitter:

@Marcossit

BBM Channel:

MarcossitDev: C0002C366  

DeviceSuite For BlackBerry 10:

Link to Download DeviceSuite:

Support was successful? Accept as Solution and click on:


Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: hello friends i have problems witch socialInvocation

Can you give a link to where you got this from?

 

An underscore usually indicates a property set from your C++ application code have you done this?

 

Can you describe what problems you are having, i.e the error message from the compiler/linker or log message from the running app.

 


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: 188
Registered: ‎07-19-2012
My Device: Z10 Limited Edition and Dev Alpha C
My Carrier: Movistar-Venezuela

Re: hello friends i have problems witch socialInvocation

the link: https://github.com/blackberry/Cascades-Samples/tree/master/socialinvocation

 

 


Follow me in Twitter:

@Marcossit

BBM Channel:

MarcossitDev: C0002C366  

DeviceSuite For BlackBerry 10:

Link to Download DeviceSuite:

Support was successful? Accept as Solution and click on:


Developer
Posts: 196
Registered: ‎03-04-2013
My Device: BB Z10
My Carrier: Rogers

Re: hello friends i have problems witch socialInvocation

I think BBSJdev covered it, but I'll point it out nonetheless and all credit goes to BBSJdev for catching that...

 

BBSJdev mentioned:

An underscore usually indicates a property set from your C++ application code have you done this?

 

This is what BBSJdev is saying and asking about:

 

    QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(&app);
    qml->setContextProperty("_socialInvocation", new SocialInvocation(&app));

 

The 2nd part is the key entry in the main(). Do you have that?