Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Realm.open({
- sync: {
- url: `realm://${URL}/tickers`,
- user: user,
- partial: true
- },
- schema: [TickerSchema],
- })
- realm.subscribeToObjects('Ticker', 'price > ' + price)
- OBJECTIVE-C
- - (void)subscribeToObjects:(nonnull Class)type
- where:(nonnull NSString *)query
- callback:(nonnull RLMPartialSyncFetchCallback)callback;
- SWIFT
- func subscribe(toObjects type: AnyClass, where query: String, callback: @escaping RLMPartialSyncFetchCallback)
- JAVA
- void subscribeToObjects(Class<E> clazz, String query, Realm.PartialSyncCallback<E> callback)
Add Comment
Please, Sign In to add comment