cordova-plugin-ortoo-safariviewcontroller
Advanced tools
Comparing version 1.2.1 to 1.4.0
{ | ||
"name": "cordova-plugin-ortoo-safariviewcontroller", | ||
"version": "1.2.1", | ||
"version": "1.4.0", | ||
"description": "Forget InAppBrowser for iOS - this is way better for displaying read-only web content in your PhoneGap app.", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -62,3 +62,5 @@ SafariViewController Cordova Plugin | ||
url: url, | ||
hidden: false, // default false. You can use this to load cookies etc in the background (see issue #1 for details). | ||
animated: false, // default true, note that 'hide' will reuse this preference (the 'Done' button will always animate though) | ||
transition: 'curl', // unless animated is false you can choose from: curl, flip, fade, slide (default) | ||
enterReaderModeIfAvailable: readerMode // default false | ||
@@ -99,2 +101,4 @@ }, | ||
## 6. Changelog | ||
1.2.0 Added lifecycle events to the success handler of `show`, and added the `animated` property to `show`. | ||
* 1.4.0 Added a `hidden` property to `show`. | ||
* 1.3.0 `isAvailable` plays nice with non-iOS platforms. Added a `transition` property to `show`. | ||
* 1.2.0 Added lifecycle events to the success handler of `show`, and added the `animated` property to `show`. |
var exec = require("cordova/exec"); | ||
module.exports = { | ||
isAvailable: function (callback) { | ||
exec(callback, null, "SafariViewController", "isAvailable", []); | ||
var errorHandler = function errorHandler(error) { | ||
// An error has occurred while trying to access the | ||
// SafariViewController native implementation, most likely because | ||
// we are on an unsupported platform. | ||
callback(false); | ||
}; | ||
exec(callback, errorHandler, "SafariViewController", "isAvailable", []); | ||
}, | ||
@@ -16,2 +22,2 @@ show: function (options, onSuccess, onError) { | ||
} | ||
}; | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1475912
22
102