Пример #1
0
        private void setLollipopProperty()
        {
            Console.WriteLine("Setting up lollipop property");
            this._bleScanner       = this._adapter.BluetoothLeScanner;
            this._lollipopCallback = new LollipopScanCallback();
            this._lollipopCallback.deviceFoundEvent += OnLeScan;

            //ScanMode is declared in Util object due to namespace conflict of ScanMode object in both Android.Bluetooth and Android.Bluetooth.LE
            this._scanSettings = new ScanSettings.Builder().SetScanMode(Util.ScanModeLowLatency).Build();
        }
Пример #2
0
		private void setLollipopProperty()
		{
			Console.WriteLine("Setting up lollipop property");
			this._bleScanner = this._adapter.BluetoothLeScanner;
			this._lollipopCallback = new LollipopScanCallback();
			this._lollipopCallback.deviceFoundEvent += OnLeScan;

			//ScanMode is declared in Util object due to namespace conflict of ScanMode object in both Android.Bluetooth and Android.Bluetooth.LE
			this._scanSettings = new ScanSettings.Builder().SetScanMode(Util.ScanModeLowLatency).Build();

		}