<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiInfrastructure",
  "identifier" : "/documentation/WiFiInfrastructure/WINetworkSharingProvider/accessPointConnectionEvents(matching:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Wi-Fi Infrastructure"
    ],
    "preciseIdentifier" : "s:18WiFiInfrastructure24WINetworkSharingProviderC27accessPointConnectionEvents8matchingQr10Foundation9PredicateVyAC06AccesshI0V_QPGSg_tF"
  },
  "title" : "accessPointConnectionEvents(matching:)"
}
-->

# accessPointConnectionEvents(matching:)

Returns an async sequence of access point events containing the currently connected access point(s) and future updates.

```
func accessPointConnectionEvents(matching predicate: Predicate<WINetworkSharingProvider.AccessPointConnection>? = nil) -> some Sendable & AsyncSequence<WINetworkSharingProvider.AccessPointConnectionEvent, any Error>
```

## Parameters

`predicate`

An optional predicate for filtering the access point list. The default is `nil`, meaning
you receive all access point information.

## Return Value

An AsyncSequence that delivers [`WINetworkSharingProvider.AccessPointConnectionEvent`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/AccessPointConnectionEvent) instances whenever
your app extension needs to update its access point information.

## Discussion

Updates will be sent when the host joins or roams to a new Access Point, or when it disconnects from an access point.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)