---
title: "accessPointConnectionEvents(matching:)"
framework: wifiinfrastructure
role: symbol
role_heading: Instance Method
path: "wifiinfrastructure/winetworksharingprovider/accesspointconnectionevents(matching:)"
---

# accessPointConnectionEvents(matching:)

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

## Declaration

```swift
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

Return Value An AsyncSequence that delivers WINetworkSharingProvider.AccessPointConnectionEvent instances whenever your app extension needs to update its access point information.

## Discussion

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

## See Also

### Getting information about access point connections

- [WINetworkSharingProvider.AccessPointConnection](wifiinfrastructure/winetworksharingprovider/accesspointconnection.md)
- [WINetworkSharingProvider.AccessPointConnectionEvent](wifiinfrastructure/winetworksharingprovider/accesspointconnectionevent.md)
