BluetoothLE

Bluetooth LE

Bluetooth LE is divided into 2 separate categories - the central manager (client) and the peripheral manager (server).

NuGet

NuGet

MyGet Badge

Support Platforms

Platform Version Docs
Android 5+ (API21) Setup
iOS 9+ Setup
UWP 16299 - Limited Beta Setup

Shiny Setup

Startup Services.UseBleCentral() or services.UseBleCentral();

Attribute [assembly: ShinyBleCentral(typeof(YourDelegate))]

Background Delegate

Public class YourDelegate : Shiny.BluetoothLE.IBleCentralDelegate {

  Public override void OnAdapterStatusChanged() 
  {
  }
  
  Public override void OnConnected(IPeripheral peripheral) {
  }
}

Accessing The Service

Shiny.ShinyHost.Resolve<Shiny.BluetoothLE.ICentralManager>();

// or DI the interface

Shiny.CrossBleAdapter.Current

FAQ

  1. On iOS, when scanning for iBeacons - I'm getting missing scan result data
  2. Yup - that's expected. Apple controls these scan results and has native implementation that deals with this
GitHub