<Kotlin. Get data from callback> I'm making a simp...
# stackoverflow
u
Kotlin. Get data from callback I'm making a simple android tracking service. In model i have two classes. One of them manages current location, another one uses first one and builds tracking route. So, what the question is : LocationManager class has method that initializes callback (the callback calls when GPS location updates). fun initLocationCallback(){ locationCallback = object : LocationCallback() { override fun onLocationResult(locationResult: LocationResult?) {...