瀏覽代碼

Update README.md

Gaëtan Renaudeau 8 年之前
父節點
當前提交
ccaaac17e7
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      README.md

+ 3
- 3
README.md 查看文件

@@ -36,9 +36,9 @@ Returns a Promise of the image URI.
36 36
  - **`format`** *(string)*: either `png` or `jpg`/`jpeg` or `webm` (Android). Defaults to `png`.
37 37
  - **`quality`** *(number)*: the quality. 0.0 - 1.0 (default). (only available on lossy formats like jpeg)
38 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.
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 42
 
43 43
    . if true, the promise returns the base64 encoded data instead of the uri. Defaults to `false`.
44 44