Class ServiceCollectionExtensions
- Namespace
- Bluetooth.Maui.Platforms.DotNetCore
- Assembly
- Bluetooth.Maui.Platforms.DotNetCore.dll
Extension methods for registering Bluetooth services in a service collection.
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
- Inherited Members
Methods
AddBluetoothMauiDotNetServices(IServiceCollection)
Adds Bluetooth scanner and broadcaster services to the service collection. Registers all core Bluetooth services including the adapter, scanner, broadcaster, and characteristic access services as singletons.
public static void AddBluetoothMauiDotNetServices(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe service collection to add services to.