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
@@ -37,7 +35,12 @@ Returns a Promise of the image URI.
37
35
-**`width`** / **`height`***(number)*: the width and height of the image to capture.
38
36
-**`format`***(string)*: either `png` or `jpg`/`jpeg` or `webm` (Android). Defaults to `png`.
39
37
-**`quality`***(number)*: the quality. 0.0 - 1.0 (default). (only available on lossy formats like jpeg)
40
-
-**`base64`***(bool)*: if true, the promise returns the base64 encoded data instead of the uri. Defaults to `false`.
38
+
-**`result`***(string)*, the method you want to use to save the snapshot, one of:
39
+
-`"file"` (default): save to a temporary file *(that will only exist for as long as the app is running)*.
40
+
-`"base64"`: encode as base64 and returns the raw string. Use only with small images as this may result of lags (the string is sent over the bridge). *N.B. This is not a data uri, use `data-uri` instead*.
41
+
-`"data-uri"`: same as `base64` but also includes the [Data URI scheme](https://en.wikipedia.org/wiki/Data_URI_scheme) header.
42
+
43
+
. if true, the promise returns the base64 encoded data instead of the uri. Defaults to `false`.
0 commit comments