cordova-plugin-twitter-composer
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "cordova-plugin-twitter-composer", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "cordova-plugin-twitter-composer", | ||
@@ -5,0 +5,0 @@ "cordova" : { |
@@ -25,3 +25,3 @@ # cordova-plugin-twitter-composer | ||
this plugin use cocoapod. please install cocoapods | ||
This plugin use cocoapods. please install cocoapods | ||
@@ -40,3 +40,3 @@ ``` | ||
// login and compose | ||
TWComposer.compse(text, imageURL).then(res => { | ||
@@ -51,2 +51,7 @@ // success or canceling tweet | ||
}); | ||
// logout method | ||
TWComposer.logout().then(() => { | ||
// after logout | ||
}); | ||
``` |
@@ -14,4 +14,13 @@ 'use strict' | ||
}, | ||
logout: function() { | ||
return new Promise((resolve, reject) => { | ||
exec(response => { | ||
resolve(response); | ||
}, error => { | ||
reject(error); | ||
} , 'TWComposer', 'logout'); | ||
}); | ||
} | ||
}; | ||
module.exports = TWComposer; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8872
22
54