Skip to content

Commit

Permalink
Updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
devmike01 committed Feb 1, 2019
1 parent d273b4c commit 9cf9489
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ A lite weight SharedPreference library which uses annotation processing to gener

```kotin
class InecBox(context: Context) {
val TAG: String = "InecBox"
//Read item from JadeSharedPreference
@ReadString("ballot")
Expand All @@ -22,7 +24,13 @@ class InecBox(context: Context) {
}
fun readBallot(){
Log.d(InecBox::class.simpleName, ballotPaper)
Log.d(TAG, ballotPaper)
}
//Listen to String changes in realtime
@ReadString("ballot")
fun readStringChanges(s: String){
Log.d(TAG, s)
}
}
Expand Down

0 comments on commit 9cf9489

Please sign in to comment.