Is there something like @EnvironmentObject (in swift) for Kotlin?

后端 未结 0 329
青春惊慌失措
青春惊慌失措 2020-12-12 05:33

For data that should be shared with all views in your entire app, SwiftUI gives us @EnvironmentObject.

Is there anything similar to this in Kotlin?

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