# fuchsia.bluetooth.fastpair

<br />

Added: 10

## **PROTOCOLS**

## Provider

*Defined in [fuchsia.bluetooth.fastpair/provider.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.fastpair/provider.fidl;l=29)*

Protocol to enable the Bluetooth Fast Pair Provider service on the system.

<br />

### 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:https://fuchsia.dev/reference/fidl/fuchsia.bluetooth.fastpair#ProviderWatcher` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth.fastpair#Provider_Enable_Result` |

## ProviderWatcher

*Defined in [fuchsia.bluetooth.fastpair/provider.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.fastpair/provider.fidl;l=17)*

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.

<br />

### 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` | `https://fuchsia.dev/reference/fuchsia.bluetooth//https://fuchsia.dev/reference/fuchsia.bluetooth#PeerId` |

#### Response

\<EMPTY\>

## **STRUCTS**

### Provider_Enable_Response

*Defined in [fuchsia.bluetooth.fastpair/provider.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.fastpair/provider.fidl;l=46)*

\<EMPTY\>

## **UNIONS**

### Provider_Enable_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.fastpair/provider.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.fastpair/provider.fidl;l=46)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth.fastpair#Provider_Enable_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |

<br />