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
@FirstScope
@SecondScope
classMainActivity {
// share on the @FirstScope
@ShareProperty(key ="name", scope =FirstScope::class.java)
privatevar username =ChamberProperty("skydoves")
// share on the @SecondScope
@ShareProperty(key ="name2", scope =SecondScope::class.java) // name is a key name.privatevar username2 =ChamberProperty("skydoves")
// .. //
@PropertyObserver(key ="name", , scope =FirstScope::class.java)
funnickNameObserver(nickname:String) {
Log.d("MainActivity", "nickNameObserver: $nickname")
}
}
@SecondScope
classSecondActivity {
// share on the @SecondScope
@ShareProperty(key ="name2") // name is a key name.privatevar username2 =ChamberProperty("skydoves")
}
The text was updated successfully, but these errors were encountered:
Support multiple scopes
Blueprint:
The text was updated successfully, but these errors were encountered: