GattServiceProvider GattServiceProvider GattServiceProvider GattServiceProvider GattServiceProvider Class

Definition

This class is used to advertise a GATT service.

public : sealed class GattServiceProvider
struct winrt::Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProvider
public sealed class GattServiceProvider
Public NotInheritable Class GattServiceProvider
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
bluetooth

Properties

AdvertisementStatus AdvertisementStatus AdvertisementStatus AdvertisementStatus AdvertisementStatus

Gets the advertisement status of this GATT service.

Service Service Service Service Service

Gets the GATT service.

Methods

CreateAsync(Guid) CreateAsync(Guid) CreateAsync(Guid) CreateAsync(Guid) CreateAsync(Guid)

Creates a new GATT service with the specified serviceUuid

StartAdvertising() StartAdvertising() StartAdvertising() StartAdvertising() StartAdvertising()

Start advertising the GATT service.

StartAdvertising(GattServiceProviderAdvertisingParameters) StartAdvertising(GattServiceProviderAdvertisingParameters) StartAdvertising(GattServiceProviderAdvertisingParameters) StartAdvertising(GattServiceProviderAdvertisingParameters) StartAdvertising(GattServiceProviderAdvertisingParameters)

Start advertising the GATT service.

StopAdvertising() StopAdvertising() StopAdvertising() StopAdvertising() StopAdvertising()

Stop advertising the GATT service.

Events

AdvertisementStatusChanged AdvertisementStatusChanged AdvertisementStatusChanged AdvertisementStatusChanged AdvertisementStatusChanged

An event that is triggered when the advertisement status has changed.