-
Notifications
You must be signed in to change notification settings - Fork 0
Lab 21
Nate Ebel edited this page Jul 19, 2022
·
3 revisions
- Update the implementation of
GPSButton
to manage the permissions request flow for location permissions - Pan the map to the user's last location when the GPS icon is clicked with permissions
- Call
locationClient.requestLocationUpdates()
to start listening to location udpates - Call
locationClient.lastLocation.addOnSuccessListener{}
to immediately respond to an available last location - If a location update is available, update the
state
property to use this new location
- Call