Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinMoskala committed Mar 17, 2017
2 parents 7205467 + 2fbbf49 commit 2d47c87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ object UserPref: PreferenceHolder() {
// can be used as type of property binded to SharedPreference field.
var character: Character? by bindToPreferenceFieldNullable()
var savedGame: Game? by bindToPreferenceFieldNullable()

// Single level collections are also supported since 1.2
var longList: Map<Int, Long> by bindToPreferenceField(mapOf(0 to 12L, 10 to 143L))
var propTest: List<Character>? by bindToPropertyWithBackupNullable()
var elemTest: Set<Elems> by bindToPreferenceField(setOf(Elems.Elem1, Elems.Elem3))
}
```

Expand Down

0 comments on commit 2d47c87

Please sign in to comment.