Created
June 21, 2019 18:43
-
-
Save wsrzx/ae5f6c88ac2fae113a902c963a2718c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
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