---
title: WINetworkSharingProvider.AccessoryScanRequest
framework: wifiinfrastructure
role: symbol
role_heading: Structure
path: wifiinfrastructure/winetworksharingprovider/accessoryscanrequest
---

# WINetworkSharingProvider.AccessoryScanRequest

A request for the accessory to scan for available Wi-Fi networks.

## Declaration

```swift
struct AccessoryScanRequest
```

## Overview

Overview An AccessoryScanRequest represents a system request for your accessory to perform a Wi-Fi scan and report discovered networks. When you provide a scan closure to presentAskToShareUI(scanProvider:), the system calls your closure with scan request instances. Your accessory should perform a Wi-Fi scan and return the results in an WINetworkSharingProvider.AccessoryScanResponse.

## Topics

### Identifying a scan request

- [WINetworkSharingProvider.AccessoryScanRequest.ID](wifiinfrastructure/winetworksharingprovider/accessoryscanrequest/id-swift.typealias.md)
- [id](wifiinfrastructure/winetworksharingprovider/accessoryscanrequest/id-swift.property.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Identifiable](swift/identifiable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Displaying network selection

- [presentAskToShareUI(scanProvider:)](wifiinfrastructure/winetworksharingprovider/presentasktoshareui(scanprovider:).md)
- [WINetworkSharingProvider.AccessoryScanResponse](wifiinfrastructure/winetworksharingprovider/accessoryscanresponse.md)
- [WINetworkSharingProvider.AccessoryScanResult](wifiinfrastructure/winetworksharingprovider/accessoryscanresult.md)
