// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using Windows.Networking.Connectivity; namespace ReactNativeCommunity.NetInfo { /// /// An interface for network information status and updates. /// public interface INetworkInformation { /// /// An event that occurs whenever the network status changes. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1009:DeclareEventHandlersCorrectly", Justification = "API matches Windows.Networking.Connectivity.NetworkingInformation.")] event NetworkStatusChangedEventHandler NetworkStatusChanged; /// /// Gets the connection profile associated with the internet connection /// currently used by the local machine. /// /// /// The profile for the connection currently used to connect the machine /// to the Internet, or null if there is no connection profile with a /// suitable connection. /// IConnectionProfile GetInternetConnectionProfile(); /// /// Starts observing network status changes. /// void Start(); /// /// Stops observing network status changes. /// void Stop(); } }