Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Realm Japan meetup #9

Realm Japan meetup #9

Realm Objective-C/Swift
- Async query
- tvOS
- Fine-grained Notification

Realm Java
- New encryption implementation
- isEmpty()

Kishikawa Katsumi

November 28, 2015
Tweet

More Decks by Kishikawa Katsumi

Other Decks in Programming

Transcript

  1. ඇಉظΫΤϦ (Objective-C) self.token = [[[Address objectsInRealm:realm withPredicate:predicate] sortedResultsUsingDescriptors:@[sortDescriptor]] deliverOnMainThread: ^(RLMResults

    * _Nullable results, NSError * _Nullable error) { self.data = results; [self.tableView reloadData]; }]; ... [self.token stop];
  2. ඇಉظΫΤϦ (Swift) token = realm.objects(Address) .filter("name contains %@", name) .sorted("name",

    ascending: true) .deliverOnMainThread { (results, error) -> () in data = results tableView.reloadData() } ... token.stop()
  3. Realm Java 0.84ܥͰͷमਖ਼ w Ϋϥογϡόάͷमਖ਼ w ಉ͡ΫΤϦΛԿ౓΋࣮ߦͨ͠ࡍͷΫϥογϡ w ෳ਺εϨου͔ΒͷPQFODMPTFͰͷ/1& w

    ϝϞϦʔϦʔΫͷमਖ਼ w ྫ֎͕εϩʔ͞ΕͨࡍͷωΠςΟϒϝϞϦͷϦʔΫ w ϦϯΫʹؔ࿈͢ΔϝϞϦϦʔΫ w 1SJNBSZLFZͷJ04ͱͷඇޓ׵ੑ
  4. Realm Java 0.85.0 w ৽͍͠҉߸Խػೳͷ࣮૷ w ҉߸Խػೳ͕͢΂ͯͷσόΠεͰར༻Ͱ͖ΔΑ͏ʹ w 3FBMN&ODSZQUJPO/PU4VQQPSUFE&YDFQUJPOΛ࡟আ w

    3FBMNJT&NQUZ ͷ௥Ճ w 3FBMN2VFSZJT/VMM 3FBMN2VFSZJT/PU/VMM ͷྫ֎ͷมߋ w τϥϯβΫγϣϯதͷSFGSFTI ͷѻ͍ w *MMFHBM4UBUF&YDFQUJPOΛεϩʔ
  5. RealmQuery.isNull()/RealmQuery.isNotNull() ͷྫ֎ͷมߋʹ͍ͭͯ w JT/VMM GSJFOEBHF 0, w JT/VMM GSJFOEQFU /(

    w ࠓ·Ͱ͸3FBMN&SSPS w Ҏ߱͸*MMFHBM"SHVNFOU&YDFQUJPO QVCMJDDMBTT)VNBOFYUFOET3FBMN0CKFDU\ QSJWBUF*OUFHFSBHF QSJWBUF"OJNBMQFU ^
  6. ։ൃத w 3Y+BWBରԠ w IUUQTHJUIVCDPNSFBMNSFBMNKBWBQVMM w IUUQTHJUIVCDPNSFBMNSFBMNKBWBJTTVFT w /FX.JHSBUJPO"1* w

    IUUQTHJUIVCDPNSFBMNSFBMNKBWBQVMM w IUUQTHJUIVCDPNSFBMNSFBMNKBWBQVMM
  7. Where to find us • ) Realm Japan User Group:

    facebook.com/groups/realmjp • ) Twitter: twitter.com/realmJapan • GitHub: github.com/realm • ) StackOverflow: ja.stackoverflow.com/questions/tagged/realm • ) Email: [email protected] • ) Slack: slack.realm.io/