public void OnServiceConnected(ComponentName name, IBinder service) { DetectorServiceBinder binder = service as DetectorServiceBinder; if (binder != null) { binderClient.Binder = binder; binderClient.isBound = true; if (BindComplete != null) { BindComplete.Invoke(this, null); } } }
public MainActivity() { isBound = false; Binder = null; }