Android : Translate in Java the Kotlin ViewModel backing field encapsulation technique

前端 未结 0 1694
天命终不由人
天命终不由人 2020-12-12 17:39

In an Android App written in Kotlin, LiveData properties in the ViewMoel can be encapsulated using the backing field technique like so :

private val _score =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题