GattServiceProviderTrigger GattServiceProviderTrigger GattServiceProviderTrigger GattServiceProviderTrigger Class

Definition

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

public : sealed class GattServiceProviderTrigger : IBackgroundTrigger, IGattServiceProviderTriggerpublic sealed class GattServiceProviderTrigger : IBackgroundTrigger, IGattServiceProviderTriggerPublic NotInheritable Class GattServiceProviderTrigger Implements IBackgroundTrigger, IGattServiceProviderTrigger// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

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

Properties

AdvertisingParameters AdvertisingParameters AdvertisingParameters AdvertisingParameters

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

public : GattServiceProviderAdvertisingParameters AdvertisingParameters { get; set; }public GattServiceProviderAdvertisingParameters AdvertisingParameters { get; set; }Public ReadWrite Property AdvertisingParameters As GattServiceProviderAdvertisingParameters// You can use this property in JavaScript.

Remarks

When the device is discoverable, the service is published to a database so that other devices can see what services are available without having to connect to the device.

Service Service Service Service

Gets the service associated with this trigger.

public : GattLocalService Service { get; }public GattLocalService Service { get; }Public ReadOnly Property Service As GattLocalService// You can use this property in JavaScript.

TriggerId TriggerId TriggerId TriggerId

Gets the trigger identifier.

public : PlatForm::String TriggerId { get; }public string TriggerId { get; }Public ReadOnly Property TriggerId As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The trigger ID.

Methods

CreateAsync(String, Guid) CreateAsync(String, Guid) CreateAsync(String, Guid) CreateAsync(String, Guid)

Creates a GATT provider service.

public : static IAsyncOperation<GattServiceProviderTriggerResult> CreateAsync(PlatForm::String triggerId, PlatForm::Guid serviceUuid)public static IAsyncOperation<GattServiceProviderTriggerResult> CreateAsync(String triggerId, Guid serviceUuid)Public Static Function CreateAsync(triggerId As String, serviceUuid As Guid) As IAsyncOperation( Of GattServiceProviderTriggerResult )// You can use this method in JavaScript.
Parameters
triggerId
PlatForm::String String String String

The identifier for the trigger.

serviceUuid
PlatForm::Guid Guid Guid Guid

The universally unique identifier for the trigger.

Returns

See Also