You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(image-loader): use tempDirectory on iOS
The tempDirectory can be accessed from the WKWebView as well; no need
for base64!
* Revert "fix(image-loader): use tempDirectory on iOS"
This reverts commit bea5839.
* Specify the imageReturnType (base64/uri)
If 'uri' is used the files will be copied to the temporary directory if
the WKWebView engine is used. Files in this directory are not
persistent, but accessible from within the WebView.
If the files do not exist any longer they will automatically be copied
again!
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@
13
13
- Allows setting **maximum cache age** to delete old images automatically. This is optional and **disabled by default**.
14
14
- Allows setting **maximum cache size** to control how much space your app takes out of the users' phones. This is optional and **disabled by default**.
15
15
- Allows setting a **fallback image** to be displayed in case the image you're trying to show doesn't exist on the web. (optional)
16
+
- Works with the **[WKWebView Engine](https://github.com/apache/cordova-plugin-wkwebview-engine)** (iOS), as the images are copied to the temporary directory, which is accessible form within the WebView
Set the return type of cached images. By default this option is set to 'uri', which will return the native file URL. If you want to get a base64-encoded representation of the file set the return type to 'base64'.
0 commit comments