mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Added chooserTitle to SocialSharingPlugin.ShareOptions
Added test case for shareWithOptions() Added chooserTitle to SocialSharingPlugin.ShareOptions Updated main plugin version number
This commit is contained in:
@@ -60,3 +60,4 @@ window.plugins.socialsharing.shareViaFacebook("Optional message, may be ignored
|
||||
window.plugins.socialsharing.share("Optional message", "Optional title", ["www/manual.pdf", "https://www.google.nl/images/srpr/logo4w.png"], "http://www.myurl.com");
|
||||
|
||||
window.plugins.socialsharing.saveToPhotoAlbum(["https://www.google.nl/images/srpr/logo4w.png", "www/image.gif"], function () { console.log("share ok") }, function (msg) { alert("error: " + msg) });
|
||||
window.plugins.socialsharing.shareWithOptions({"message":"sharethis","subject":"thesubject","files":["",""],"url":"https: //www.website.com/foo/#bar?a=b","chooserTitle":"Pickanapp"}, function () { console.log("share ok") }, function (msg) { alert("error: " + msg) });
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Type definitions for SocialSharing-PhoneGap-Plugin v5.0.12
|
||||
// Type definitions for SocialSharing-PhoneGap-Plugin v5.1.8
|
||||
// Project: https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin
|
||||
// Definitions by: Markus Wagner <https://github.com/Ritzlgrmft/>
|
||||
// Definitions by: Markus Wagner <https://github.com/Ritzlgrmft/>, Larry Bahr <https://github.com/larrybahr>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface Window {
|
||||
@@ -18,6 +18,7 @@ declare module SocialSharingPlugin {
|
||||
subject?: string;
|
||||
files?: string | string[];
|
||||
url?: string;
|
||||
chooserTitle?: string;
|
||||
}
|
||||
|
||||
interface ShareResult {
|
||||
|
||||
Reference in New Issue
Block a user