示例#1
0
        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);
                }
            }
        }
示例#2
0
 public MainActivity()
 {
     isBound = false;
     Binder  = null;
 }