コード例 #1
0
        public void OnServiceConnected(ComponentName name, IBinder service)
        {
            CurrencyServiceBinder csBinder = service as CurrencyServiceBinder;

            if (csBinder == null)
            {
                return;
            }

            Service = csBinder.Service;

            CurrencyServiceConnectionChanged?.Invoke(this, true);
        }
コード例 #2
0
 public CurrencyServiceBinder(CurrencyService service)
 {
     this.Service = service;
 }
コード例 #3
0
 public void OnServiceDisconnected(ComponentName name)
 {
     CurrencyServiceConnectionChanged?.Invoke(this, false);
     Service = null;
 }