GattCharacteristicNotificationTrigger Classe

Definizione

Rappresenta un trigger che avvia un'attività in background quando viene ricevuta una notifica di modifica in ingresso per una caratteristica Bluetooth LE GATT.

public ref class GattCharacteristicNotificationTrigger sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.IGattCharacteristicNotificationTriggerFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GattCharacteristicNotificationTrigger final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.IGattCharacteristicNotificationTriggerFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class GattCharacteristicNotificationTrigger final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.IGattCharacteristicNotificationTriggerFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.IGattCharacteristicNotificationTriggerFactory2, 262144, "Windows.Foundation.UniversalApiContract")]
class GattCharacteristicNotificationTrigger final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.IGattCharacteristicNotificationTriggerFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GattCharacteristicNotificationTrigger
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.IGattCharacteristicNotificationTriggerFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class GattCharacteristicNotificationTrigger
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.IGattCharacteristicNotificationTriggerFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.IGattCharacteristicNotificationTriggerFactory2), 262144, "Windows.Foundation.UniversalApiContract")]
public sealed class GattCharacteristicNotificationTrigger
function GattCharacteristicNotificationTrigger(characteristic)
function GattCharacteristicNotificationTrigger(characteristic, eventTriggeringMode)
Public NotInheritable Class GattCharacteristicNotificationTrigger
Ereditarietà
Object Platform::Object IInspectable GattCharacteristicNotificationTrigger
Attributi
Implementazioni

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v1.0)

Commenti

Cronologia delle versioni

Versione di Windows Versione dell'SDK Valore aggiunto
1703 15063 GattCharacteristicNotificationTrigger(GattCharacteristic,BluetoothEventTriggeringMode)
1703 15063 EventTriggeringMode

Costruttori

GattCharacteristicNotificationTrigger(GattCharacteristic)

Inizializza una nuova istanza della classe GattCharacteristicNotificationTrigger .

GattCharacteristicNotificationTrigger(GattCharacteristic, BluetoothEventTriggeringMode)

Inizializza una nuova istanza della classe GattCharacteristicNotificationTrigger con la caratteristica e la modalità di attivazione specificata.

Proprietà

Characteristic

Ottiene la caratteristica GATT per cui sono desiderate le notifiche di modifica del valore.

EventTriggeringMode

Ottiene la modalità per il trigger. La modalità specifica quando viene attivato il trigger.

Si applica a

Vedi anche