Skip to content

Commit

Permalink
Add note about new api
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Apr 21, 2018
1 parent 07455a8 commit a6b39fe
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,17 @@ Add the following to the `<android>` manifest section of the tiapp.xml:

- `className` (String)
- `predicate` (String, optional, e.g. `name = "hans"`)
- `predicateArguments` (String, optional, e.g. `myUsers`)

Note: When using `predicateArguments`, you write a template based placeholder inside the `predicate` parameter
and fill it with the arguments passed in `predicateArguments`, e.g.
```
var query = LiveQuery.createQuery({
className: 'User',
predicate: 'userId in %@'
predicateArguments: users // an array of users
});
```

#### Methods

Expand Down

0 comments on commit a6b39fe

Please sign in to comment.