# Network Events

Wisej.NET Hybrid applications support monitoring the current network status of the Hybrid device.

## Sample

{% embed url="<https://github.com/iceteagroup/wisej-hybrid-examples/tree/main/NetworkEvents>" %}

The current network state is accessible using the **Info** member of the **Device** singleton (`Wisej.Hybrid.Device.Info`).

```csharp
// can the device connect to the internet:
NetworkAccess access = Device.Info.Networking.NetworkAccess;

// Cellular, WiFi, Ethernet, etc.
ConnectionProfile[] profiles = Device.Info.Networking.ConnectionProfiles;
```

## Monitor Network Events

It's possible to monitor changes in the network state using `Device.Networking`.

```csharp
Device.Info.Networking.ConnectiivtyChanged += (s, e) => 
{
    NetworkAccess access = e.NetworkAccess;
    ConnectionProfile[] profiles = e.ConnectionProfiles;
};
```

{% hint style="warning" %}
Keep in mind, monitoring **NetworkAccess** may not work when using an **online** application as the application may not be able to connect to the remote web server.
{% endhint %}

## Further Reading

{% embed url="<https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/communication/networking?view=net-maui-8.0&tabs=android>" %}
.NET MAUI Connectivity
{% endembed %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/hybrid/development/network-events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
