You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Peter Vincent edited this page Mar 1, 2020
·
1 revision
Our repository is consumed in the main activity.
note here it is consumed synchronously as we only implemented methods in the synchronous store of the repo,
this all method of the Repo also takes in callbacks, providing those callbacks would consume the repo asynchronously
and we'll have to implement methods in the asynchronous store of the repo
...
overridefunonPostCreate(savedInstanceState:Bundle?) {
super.onPostCreate(savedInstanceState)
val models = complexStore.all(ArrayMap<String, Any>().apply {
put(NUMBER_ARG, 10)
put(TIMES_ARG, 2)
})
val result ="${models.first.toString()}\n meta \n${models.second}"
main_textview.text = result
}
...
We have to pass the number and times arguments to the map argument