Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 426 Bytes

find-realm-file-kotlin.rst

File metadata and controls

17 lines (14 loc) · 426 Bytes
config = SyncConfiguration.Builder(user, setOf(Item::class))
   .initialSubscriptions { realm ->
      add(
         realm.query<Item>(
            "owner_id == $0",
            realmApp.currentUser!!.identity
         ),
         "User's Items"
      )
   }
   .build()

// Log on-disk location of the realm file
Log.v("My Tag", "Realm Path: ${config.path}")