次の方法で共有


GattCharacteristicNotificationTrigger クラス

定義

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
継承
Object Platform::Object IInspectable GattCharacteristicNotificationTrigger
属性
実装

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

バージョン履歴

Windows のバージョン SDK バージョン 追加された値
1703 15063 GattCharacteristicNotificationTrigger(GattCharacteristic,BluetoothEventTriggeringMode)
1703 15063 EventTriggeringMode

コンストラクター

GattCharacteristicNotificationTrigger(GattCharacteristic)

GattCharacteristicNotificationTrigger クラスの新しいインスタンスを初期化します。

GattCharacteristicNotificationTrigger(GattCharacteristic, BluetoothEventTriggeringMode)

指定した特性とトリガー モードを使用して GattCharacteristicNotificationTrigger クラスの新しいインスタンスを初期化します。

プロパティ

Characteristic

値変更通知が必要な GATT 特性を取得します。

EventTriggeringMode

トリガーのモードを取得します。 モードは、トリガーがアクティブ化されるタイミングを指定します。

適用対象

こちらもご覧ください