PROTOCOLS
Provider
Defined in fuchsia.bluetooth.fastpair/provider.fidl
Protocol to enable the Bluetooth Fast Pair Provider service on the system.
Enable
Request to enable the Fast Pair Provider service.
Only one client can register to enable the Fast Pair service. An Error will be returned for subsequent requests.
The lifetime of the service is tied to the provided watcher
. To disable Fast Pair
functionality, close the watcher
.
- request
watcher
The client end of the ProviderWatcher which determines the lifetime of the Fast Pair service.
- response An empty response will be sent when the server has processed the request.
- error Returns
ALREADY_BOUND
if a subsequent request is made to enable the service.
Request
Name | Type |
---|---|
watcher |
client_end:ProviderWatcher
|
Response
Name | Type |
---|---|
payload |
Provider_Enable_Result
|
ProviderWatcher
Defined in fuchsia.bluetooth.fastpair/provider.fidl
Represents an active Fast Pair Provider service. The lifetime of the service is tied to this protocol.
Closing the protocol disables the service.
The system may close the protocol to communicate that the service was terminated for internal reasons.
OnPairingComplete
Called if the Fast Pair pairing procedure for a peer is successfully complete.
- request
id
The unique ID associated with the connected Fast Pair Seeker peer.
- response Each
OnPairingComplete
request should be acknowledged.
Request
Name | Type |
---|---|
id |
fuchsia.bluetooth/PeerId
|
Response
<EMPTY>
STRUCTS
Provider_Enable_Response
Defined in fuchsia.bluetooth.fastpair/provider.fidl
<EMPTY>
UNIONS
Provider_Enable_Result strict
Defined in fuchsia.bluetooth.fastpair/provider.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
Provider_Enable_Response
|
|
2 |
err |
zx/Status
|