public void OnServiceConnected(ComponentName name, IBinder service) { CurrencyServiceBinder csBinder = service as CurrencyServiceBinder; if (csBinder == null) { return; } Service = csBinder.Service; CurrencyServiceConnectionChanged?.Invoke(this, true); }
public CurrencyServiceBinder(CurrencyService service) { this.Service = service; }
public void OnServiceDisconnected(ComponentName name) { CurrencyServiceConnectionChanged?.Invoke(this, false); Service = null; }