Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.46 KB

gattdeviceservice_fromidasync_1322863552.md

File metadata and controls

37 lines (25 loc) · 1.46 KB
-api-id -api-type -api-device-family-note
M:Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceService.FromIdAsync(System.String)
winrt method
xbox

Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceService.FromIdAsync

-description

Instantiates a new GattDeviceService from the device ID.

-parameters

-param deviceId

The GATT device ID.

-returns

The object for managing the asynchronous operation, which, upon completion, returns the newly instantiated GattDeviceService.

-remarks

The first time this method is invoked by a store app, it should be called from a UI thread in order to display the consent prompt. After the user has granted consent, the method can be invoked from any application thread.

If a store app has not declared the right capabilities or the user does not grant consent, the method returns a null object.

-examples

-see-also

-capabilities

bluetooth