GattServiceProviderTrigger Classe

Définition

Construit un service d’attributs génériques (GATT) qui peut être conservé en arrière-plan.

public ref class GattServiceProviderTrigger sealed : IBackgroundTrigger
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GattServiceProviderTrigger final : IBackgroundTrigger
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GattServiceProviderTrigger : IBackgroundTrigger
Public NotInheritable Class GattServiceProviderTrigger
Implements IBackgroundTrigger
Héritage
Object Platform::Object IInspectable GattServiceProviderTrigger
Attributs
Implémente

Configuration requise pour Windows

Famille d’appareils
Windows 10 Creators Update (introduit dans 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v4.0)

Remarques

LE GATT définit une structure de données hiérarchique qui est exposée aux appareils Bluetooth à faible consommation d’énergie (LE) connectés.

Propriétés

AdvertisingParameters

Obtient les paramètres de publicité qui contrôlent si la radio est connectée/détectable.

Service

Obtient le service associé à ce déclencheur.

TriggerId

Obtient l’identificateur du déclencheur.

Méthodes

CreateAsync(String, Guid)

Crée un service de fournisseur GATT.

S’applique à

Voir aussi