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:
Larry Bahr
2017-06-20 15:47:22 -05:00
parent 882213e20f
commit cc4aa54d9d
2 changed files with 4 additions and 2 deletions

View File

@@ -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) });

View File

@@ -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 {