<!--
{
  "availability" : [
    "iOS: 26.2.0 -",
    "iPadOS: 26.2.0 -",
    "macCatalyst: 26.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiInfrastructure",
  "identifier" : "/documentation/WiFiInfrastructure/WINetworkSharingProvider/NetworkEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Wi-Fi Infrastructure"
    ],
    "preciseIdentifier" : "s:18WiFiInfrastructure24WINetworkSharingProviderC12NetworkEventV"
  },
  "title" : "WINetworkSharingProvider.NetworkEvent"
}
-->

# WINetworkSharingProvider.NetworkEvent

An event that occurred, indicating an update to the available shared networks.

```
struct NetworkEvent
```

## Overview

A `NetworkEvent` provides a snapshot of the current shared network’s state, along with flags indicating
system events that might require action from your app extension. Each event contains the complete
list of networks currently shared with your accessory.

The event includes Boolean flags that indicate specific conditions:

- New networks available for sharing that people can approve.
- Requests from your container app to present sharing UI.
- Updates to the networks list itself.

Use the sequence number and update counter to track changes and avoid processing duplicate events.
The timestamp provides context, but don’t use it for precise change detection due to potential clock variations.

## Topics

### Identifying an event

[`ID`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/NetworkEvent/ID-swift.typealias)

The type of value that uniquely identifies this event.

[`id`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/NetworkEvent/id-swift.property)

A stable identifier that uniquely identifies this event.

### Getting network data

[`networks`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/NetworkEvent/networks)

The latest network data, containing a list of all networks shared to the device.

[`networksUpdateCounter`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/NetworkEvent/networksUpdateCounter)

A counter that increments whenever the network data changes.

### Getting event signals

[`newShareableNetworkAvailable`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/NetworkEvent/newShareableNetworkAvailable)

A Boolean value that indicates whether the system detected available networks your app extension may request from people.

[`appRequestedSharing`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/NetworkEvent/appRequestedSharing)

A Boolean value that indicates whether the container app requested network sharing.

### Getting the event time

[`timestamp`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/NetworkEvent/timestamp)

The date when this event occurred.

### Getting the event description

[`description`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/NetworkEvent/description)

A string description of the event, for debugging purposes.

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Identifiable`](/documentation/Swift/Identifiable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`Decodable`](/documentation/Swift/Decodable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

---

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)