コード例 #1
0
 public Device(AdapterContext context, CBPeripheral peripheral) : base(peripheral.Name,
                                                                       peripheral.Identifier.ToGuid())
 {
     this.context    = context;
     this.peripheral = peripheral;
 }
コード例 #2
0
 public Adapter()
 {
     this.manager    = (BluetoothManager)Application.Context.GetSystemService(Application.BluetoothService);
     this.context    = new AdapterContext(this.manager);
     this.Advertiser = new Advertiser();
 }
コード例 #3
0
ファイル: Adapter.cs プロジェクト: LuanNg/bluetoothle-1
 public Adapter()
 {
     this.manager           = (BluetoothManager)Application.Context.GetSystemService(Application.BluetoothService);
     this.context           = new AdapterContext(this.manager);
     this.scanStatusChanged = new Subject <bool>();
 }
コード例 #4
0
 public Adapter(BleAdapterConfiguration config = null)
 {
     this.context           = new AdapterContext(config);
     this.scanStatusChanged = new Subject <bool>();
 }