Dela via


GattServiceProviderTrigger Class

Definition

Constructs a Generic Attributes (GATT) service that can be persisted in the background.

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
Inheritance
Object Platform::Object IInspectable GattServiceProviderTrigger
Attributes
Implements

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

GATT defines a hierarchical data structure that is exposed to connected Bluetooth low energy (LE) devices.

Properties

AdvertisingParameters

Gets the advertising parameters which control whether the radio is connected/discoverable.

Service

Gets the service associated with this trigger.

TriggerId

Gets the trigger identifier.

Methods

CreateAsync(String, Guid)

Creates a GATT provider service.

Applies to

See also