BlackBerry WebWorks to invoke popping BB10 Share panel/screen
问题 How can u get my webworks app to pop open the blackberry 10 share panel? Ex: open a website in the browser, click the overflow button and then click share Thank you! 回答1: You'll want to look at the invokeTargetPicker API. Essentially, you create a request var request = { action: 'bb.action.SHARE', // for a file uri: 'file://' + path, // for text you'd use 'data' data: 'I am awesome', target_type: ["APPLICATION", "VIEWER", "CARD"] }; Then you call the API blackberry.invoke.card