// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using Windows.Networking.Connectivity; namespace ReactNativeCommunity.NetInfo { public enum NetworkConnectionType { Unknown, None, Cellular, Ethernet, Wifi, Other } public enum CellularGeneration { Unknown, None, Generation2, Generation3, Generation4 } /// /// An interface for network connection profiles. /// public interface IConnectionProfile { /// /// A value that indicates the network connectivity level. /// NetworkConnectivityLevel ConnectivityLevel { get; } /// /// A value that indicates the network connection type. /// NetworkConnectionType ConnectionType { get; } /// /// A value that indicates the cellular generation currently in use, if ConnectionType is Cellular. /// CellularGeneration CellularGeneration { get; } /// /// A value that indicates the network connection cost, i.e. is the connection metered. /// NetworkCostType ConnectionCost { get; } } }