コード例 #1
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);
            }

            MvxPluginLog.Instance.Trace("Plugin.Location.Fused - OnConnected");
        }
コード例 #2
0
 public override void OnLocationResult(LocationResult result)
 {
     LastKnownLocation = result.LastLocation;
     _owner.OnLocationUpdated(result.LastLocation);
 }