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
spoutnik
Posts: 39
Registered: ‎07-06-2012
My Device: DevAlpha, PlayBook

"Share" card invocation

Hi,

 

I guess there will be many apps with a "share" feature. Either for text or for images/files. I see most of the code it takes to implement this for the different ways to share content. But I wonder if there is a 'card' for this.

What I mean is that you would invoke a card that lets the user choose between BBM, BBM Group, Bluetooth, NFC and other .. and then this card would manage what it takes to do the rest. This would safe a lot of time for many developers.

Does such a component exist? If so, how would I invoke it. If not, maybe it could be a community project?

 

IMG_00000075.png

 

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: "Share" card invocation

The screenshot you have below is the card you are describing.  Here is an example of the invocation parameters required to use it.

 

 

InvokeActionItem {
	title: "Share Text"
	query {
		mimeType: "text/plain"
		invokeActionId: "bb.action.SHARE"
		data: "This is some text to share."
	}
}

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Contributor
Kevin2020
Posts: 6
Registered: ‎01-24-2013
My Device: 10

Re: "Share" card invocation

can I invoke setting screen as a card in qml. I mean when invoke the setting screen ,i can come back to my ower app just click back button.
BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: "Share" card invocation

Yes, refer to this link for information on invoking the settings application.

 

Invocation attributes for the settings card

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900

Re: "Share" card invocation

You can invoke the setting as the core application.

 

https://developer.blackberry.com/cascades/documentation/device_platform/invocation/settings.html

 

Target ID

sys.settings.target

Action

bb.action.OPEN

MIME type

settings/view




p(^_^)q
Good good study, day day up