Skip to content

Instantly share code, notes, and snippets.

@wsrzx
Created June 21, 2019 18:43
Show Gist options
  • Save wsrzx/ae5f6c88ac2fae113a902c963a2718c1 to your computer and use it in GitHub Desktop.
Save wsrzx/ae5f6c88ac2fae113a902c963a2718c1 to your computer and use it in GitHub Desktop.
//...
var currentContext = Android.App.Application.Context;
var receiver = new BluetoothDeviceDiscoverReceiver(currentContext);
var filter = new IntentFilter(BluetoothDevice.ActionFound);
filter.AddAction(BluetoothAdapter.ActionDiscoveryStarted);
filter.AddAction(BluetoothAdapter.ActionDiscoveryFinished);
currentContext.RegisterReceiver(receiver, filter);
bluetoothAdapter.StartDiscovery();
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment