Skip to content

Instantly share code, notes, and snippets.

@Lavanyagaur22
Last active April 26, 2020 12:16
Show Gist options
  • Save Lavanyagaur22/7f54435342652784d09e5bd7f8277b6e to your computer and use it in GitHub Desktop.
Save Lavanyagaur22/7f54435342652784d09e5bd7f8277b6e to your computer and use it in GitHub Desktop.
// FusedLocationProviderClient - MainActivity class for receiving location updates.
private lateinit var fusedLocationProviderClient: FusedLocationProviderClient
override fun onCreate(savedInstanceState: Bundle?) {
// ...
fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment