Class Connectivity
Connectivity and networking information of the device.
Implements
Inherited Members
Namespace: Evergine.Platform
Assembly: Evergine.Platform.dll
Syntax
public class Connectivity : IDisposable
Remarks
Needs ACCESS_NETWORK_STATE permission set in manifest for Android.
Constructors
Connectivity()
Initializes a new instance of the Connectivity class.
Declaration
public Connectivity()
Properties
ConnectionProfiles
Gets the active connectivity types for the device.
Declaration
public IEnumerable<ConnectionProfiles> ConnectionProfiles { get; }
Property Value
Type | Description |
---|---|
IEnumerable<ConnectionProfiles> |
Remarks
Needs ACCESS_NETWORK_STATE permission set in manifest for Android.
IsSupported
Gets a value indicating whether the connectivity tracker is supported on the current platform.
Declaration
public bool IsSupported { get; }
Property Value
Type | Description |
---|---|
bool |
NetworkAccess
Gets the current state of network access. Does not guarantee full access to the internet.
Declaration
public NetworkAccess NetworkAccess { get; }
Property Value
Type | Description |
---|---|
NetworkAccess |
Remarks
Needs ACCESS_NETWORK_STATE permission set in manifest for Android.
Methods
Dispose()
Declaration
public void Dispose()
Events
ConnectivityChanged
Occurs when a network access or profile has changed.
Declaration
public event EventHandler ConnectivityChanged
Event Type
Type | Description |
---|---|
EventHandler |