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
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

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
Attributes

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

Gets the service associated with this trigger.

public GattLocalService Service { get; }public GattLocalService Service { get; }Public ReadOnly Property Service As GattLocalService
Attributes

TriggerId TriggerId TriggerId

Gets the trigger identifier.

public string TriggerId { get; }public string TriggerId { get; }Public ReadOnly Property TriggerId As string
Value
string string string

The trigger ID.

Attributes

Methods

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

Creates a GATT provider service.

public static IAsyncOperation<GattServiceProviderTriggerResult> CreateAsync(String triggerId, 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 )
Parameters
triggerId
System.String System.String System.String

The identifier for the trigger.

serviceUuid
System.Guid System.Guid System.Guid

The universally unique identifier for the trigger.

Returns

Await the asynchronous operation to get the GattServiceProviderTriggerResult.

Attributes

See Also