accessPointConnectionEvents(matching:)
Returns an async sequence of access point events containing the currently connected access point(s) and future updates.
Declaration
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 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.