コード例 #1
0
 public BluetoothClient(Context context, UIUpdateHandler handler, Action <byte[]> WifiCallback, Action <State> StateChangedCallback)
 {
     this.handler              = handler;
     this.context              = context;
     this.WifiCallback         = WifiCallback;
     this.StateChangedCallback = StateChangedCallback;
     SendQueue     = new ConcurrentQueue <String>();
     RecieveThread = new Thread(Recieve);
     SendThread    = new Thread(ProcessSendQueue);
 }
コード例 #2
0
ファイル: Client.cs プロジェクト: elad661/slideclicker
 public Client(Context context, ImageView imageview, TextView statusview)
 {
     this.context = context;
     handler      = new UIUpdateHandler(imageview, statusview);
     bt           = new BluetoothClient(context, handler, WifiCallback, StateChangedCallback);
 }