示例#1
0
 public GPSServiceConnection(GPSServiceBinder binder)
 {
     if (binder != null)
     {
         this._binder = binder;
     }
 }
示例#2
0
        public void OnServiceConnected(ComponentName name, IBinder service)
        {
            GPSServiceBinder serviceBinder = (GPSServiceBinder)service;

            if (serviceBinder != null)
            {
                this._binder         = serviceBinder;
                this._binder.IsBound = true;

                // raise the service bound event
                //this.ServiceConnected(this, new ServiceConnectedEventArgs() { Binder = service });
                serviceBinder.Service.StartLocationUpdates();
                if (Connected != null)
                {
                    Connected.Invoke();
                }
            }
        }
        public void OnServiceConnected(ComponentName name, IBinder service) {
            GPSServiceBinder serviceBinder = (GPSServiceBinder)service;

            if (serviceBinder != null) {
                this._binder = serviceBinder;
                this._binder.IsBound = true;

                // raise the service bound event
                //this.ServiceConnected(this, new ServiceConnectedEventArgs() { Binder = service });
                serviceBinder.Service.StartLocationUpdates();
                if (Connected != null)
                    Connected.Invoke();
            }
        }
 public GPSServiceConnection(GPSServiceBinder binder) {
     if (binder != null)
         this._binder = binder;
 }