Пример #1
0
 public GPSBackgroundServiceConnection(GPSBackgroundServiceBinder binder)
 {
     if (binder != null)
     {
         this._binder = binder;
     }
 }
Пример #2
0
        public void OnServiceConnected(ComponentName name, IBinder service)
        {
            GPSBackgroundServiceBinder serviceBinder = (GPSBackgroundServiceBinder)service;

            if (serviceBinder != null)
            {
                this._binder         = serviceBinder;
                this._binder.IsBound = true;
                serviceBinder.Service.StartLocationUpdates();
                if (Connected != null)
                {
                    Connected.Invoke();
                }
            }
        }