DevicePairingKinds
DevicePairingKinds
DevicePairingKinds
DevicePairingKinds
Enum
Definition
Indicates the kinds of pairing supported by your application or requested by the system. As an input value, use this value to indicate what kinds of pairing your application supports. When this datatype is received as an output value, it indicates the kind of pairing requested by the system. In this case, your code will need to respond accordingly.
This enumeration has a System.FlagsAttribute attribute that allows a bitwise combination of its member values.
public : enum class DevicePairingKindspublic enum DevicePairingKindsPublic Enum DevicePairingKinds// You can use this enum in JavaScript.
- Attributes
-
System.FlagsAttribute ContractVersionAttribute
| Device family |
Windows 10 (introduced v10.0.10586.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v2)
|
Fields
| ConfirmOnly ConfirmOnly ConfirmOnly ConfirmOnly | The application must confirm they wish to perform the pairing action. You can present an optional confirmation dialog to the user. With a value of ConfirmOnly, Accept the pairing if you want it to complete. |
| ConfirmPinMatch ConfirmPinMatch ConfirmPinMatch ConfirmPinMatch | The application must display the given PIN to the user and ask the user to confirm that the PIN matches the one show on the target device. With a value of ConfirmPinMatch, Accept the pairing if you want it to complete. |
| DisplayPin DisplayPin DisplayPin DisplayPin | The application must display the given PIN to the user. The user will then need to enter or confirm that PIN on the device that is being paired. With a value of DisplayPin, Accept the pairing if you want it to complete. If your application cancels the pairing at this point, the device might still be paired. This is because the system and the target device don't need any confirmation for this DevicePairingKinds value. |
| None None None None | No pairing is supported. |
| ProvidePin ProvidePin ProvidePin ProvidePin | The application must request a PIN from the user. The PIN will typically be displayed on the target device. With a value of ProvidePin, Accept the pairing and pass in the PIN as a parameter. |
Remarks
This value is a collection of flags. It is possible to have multiple values set for a single pairing action.