Created
November 20, 2020 16:17
-
-
Save psteiger/bff6d814f77b59e7977301ad8fa7ac28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@AndroidEntryPoint | |
class NearbyUsersActivity : AppCompatActivity() { | |
private val viewModel: NearbyUsersViewModel by viewModels() | |
override fun onCreate(savedInstanceState: Bundle?) { | |
viewModel | |
.locations | |
.onEach { /* new locations received */ } | |
.observeIn(this) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment