public void OnServiceConnected(ComponentName name, IBinder serviceBinder) { LocationDelegateBinder binder = serviceBinder as LocationDelegateBinder; if (binder != null) { DelegateHandler.ServiceConnected(binder); } }
public void ServiceDisconnected( ) { Rock.Mobile.Util.Debug.WriteToLog("DroidLocation::ServiceDisconnected() - We are UNBOUND from LocationDelegateService"); if (DelegateBinder != null) { DelegateBinder.Service.SetHandler(null); DelegateBinder = null; } }
public void ServiceConnected(IBinder binder) { Rock.Mobile.Util.Debug.WriteToLog("DroidLocation::ServiceConnected() - We are bound to LocationDelegateService"); DelegateBinder = (LocationDelegateBinder)binder; // give the service an instance of ourselves so it can notify us of events DelegateBinder.Service.SetHandler(this); // now wait for "OnReady", which means it can being processing our requests }