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
Copy file name to clipboardExpand all lines: README.md
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,19 @@ The plugin aims to be used with iOS version >= 7.
16
16
17
17
## Usage
18
18
The plugin offers two functions `isDetecting` and `setPattern`.
19
-
`isDetecting` callback on success function if detecting, on error function if it's not.
20
-
`setPattern` sets the new pattern target to be detected. Calls on success if the pattern is set on error if no pattern set.
21
-
19
+
`isDetecting` - the plugin will callback on success function if detecting the pattern or on error function if it's not.
20
+
```javascript
21
+
isDetecting(successCallback, errorCallback);
22
+
```
23
+
24
+
`setPattern` - sets the new pattern target to be detected. Calls on success if the pattern is set and on error if no pattern set. The input pattern must be a base64 image.
0 commit comments