Share via


Connectivity.ConnectivityChanged Event

Definition

Occurs when network access or profile has changed.

public:
 static event EventHandler<Microsoft::Maui::Networking::ConnectivityChangedEventArgs ^> ^ ConnectivityChanged;
public static event EventHandler<Microsoft.Maui.Networking.ConnectivityChangedEventArgs> ConnectivityChanged;
member this.ConnectivityChanged : EventHandler<Microsoft.Maui.Networking.ConnectivityChangedEventArgs> 
Public Shared Custom Event ConnectivityChanged As EventHandler(Of ConnectivityChangedEventArgs) 

Event Type

Remarks

Can throw PermissionException on Android if ACCESS_NETWORK_STATE is not set in manifest.

Applies to