public void OnConnected(Bundle connectionHint)
        {
            LocationServices.FusedLocationApi.RequestLocationUpdates(_client, _request, this, Looper.MainLooper);

            var location = LocationServices.FusedLocationApi.GetLastLocation(_client);

            if (location != null)
            {
                _owner.OnLocationUpdated(location);
            }
        }
Esempio n. 2
0
        public void OnConnected(Bundle connectionHint)
        {
            LocationServices.FusedLocationApi.RequestLocationUpdates(_client, _request, this, Looper.MainLooper);

            var location = LocationServices.FusedLocationApi.GetLastLocation(_client);

            if (location != null)
            {
                _owner.OnLocationUpdated(location);
            }

            Mvx.TaggedTrace(MvxTraceLevel.Diagnostic, "Plugin.Location.Fused", "OnConnected");
        }