120
edits
No edit summary |
(replace setPairingConfirmation by accept/reject) |
||
| Line 21: | Line 21: | ||
Promise<void> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent#setPinCode.28DOMString_aPinCode.29|setPinCode(DOMString aPinCode)]]; | Promise<void> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent#setPinCode.28DOMString_aPinCode.29|setPinCode(DOMString aPinCode)]]; | ||
Promise<void> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent# | Promise<void> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent#accept.28.29|accept()]]; | ||
Promise<void> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent#reject.28.29|reject()]]; | |||
}; | }; | ||
| Line 51: | Line 52: | ||
!! colspan="2" style="background:#ffdead;" | Methods | !! colspan="2" style="background:#ffdead;" | Methods | ||
|- | |- | ||
! passkey !! setPinCode !! | ! passkey !! setPinCode !! accept !! reject | ||
|- | |- | ||
! ondisplaypasskeyreq | ! ondisplaypasskeyreq | ||
| V || || | | V || || V || V || | ||
|- | |- | ||
! onenterpincodereq | ! onenterpincodereq | ||
| || V || | | || V || || V || | ||
|- | |- | ||
! onpairingconfirmationreq | ! onpairingconfirmationreq | ||
| V || || V | | V || || V || V || | ||
|- | |- | ||
! onpairingconsentreq | ! onpairingconsentreq | ||
| || || | | || || V || V || | ||
|} | |} | ||
| Line 80: | Line 81: | ||
== Methods == | == Methods == | ||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent#setPinCode.28DOMString_aPinCode.29|BluetoothPairingHandle.setPinCode(DOMString aPinCode)]] | * [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent#setPinCode.28DOMString_aPinCode.29|BluetoothPairingHandle.setPinCode(DOMString aPinCode)]] | ||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent# | * [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent#accept.28.29|BluetoothPairingHandle.accept()]] | ||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent#reject.28.29|BluetoothPairingHandle.reject()]] | |||
=== setPinCode(DOMString aPinCode) === | === setPinCode(DOMString aPinCode) === | ||
| Line 93: | Line 95: | ||
: A Promise to indicate whether the operation is resolved or rejected. If setPinCode is invalid for current pairing request, the Promise would be rejected. | : A Promise to indicate whether the operation is resolved or rejected. If setPinCode is invalid for current pairing request, the Promise would be rejected. | ||
=== | === accept() === | ||
; Description | ; Description | ||
: The method replies user | : The method replies that user confirms to pair the local bluetooth adapter with the remote device. | ||
; | ; Return | ||
: | : A Promise to indicate whether the operation is resolved or rejected. If accept is invalid for current pairing request, the Promise would be rejected. | ||
: | |||
=== reject() === | |||
; Description | |||
: The method replies that user rejects to pair the local bluetooth adapter with the remote device. | |||
; Return | ; Return | ||
: A Promise to indicate whether the operation is resolved or | : A Promise to indicate whether the operation is resolved or rejected. | ||
edits