コード例 #1
0
        public AndroidBluetoothDeviceProximityProbe()
        {
            _bluetoothScannerCallback = new AndroidBluetoothScannerCallback(this);

            _bluetoothScannerCallback.DeviceIdEncountered += (sender, bluetoothDeviceProximityDatum) =>
            {
                lock (EncounteredDeviceData)
                {
                    EncounteredDeviceData.Add(bluetoothDeviceProximityDatum);
                }
            };

            _bluetoothAdvertiserCallback = new AndroidBluetoothAdvertisingCallback(this);
        }