Xamarin.NetworkManager 1.0.0

A cross platform wrapper for NetworkManager on iOS and Android

There is a newer version of this package available.
See the version list below for details.
Install-Package Xamarin.NetworkManager -Version 1.0.0
dotnet add package Xamarin.NetworkManager --version 1.0.0
<PackageReference Include="Xamarin.NetworkManager" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin.NetworkManager --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NetworkManager

A Cross platform wrapper for NetworkManager on iOS and Android

Usage:

    using Subsystems.NetworkManagerShared.External;

...
...

    private CMPNetworkManagerSharedProxy _networkManagerProxy;

Initialize

    _networkManagerProxy = new CMPNetworkManagerSharedProxy(this);

NetworkStatusChanged

_networkManagerProxy.NetworkStatusChanged += (object sender,
                                                          CMPNetworkEventArgs e) =>
{

    Console.WriteLine(e.State);

};

_networkManagerProxy.StartMonitoring();

IsNetworkReachable

_networkManagerProxy.IsNetworkReachable();

StartMonitoring

_networkManagerProxy.StartMonitoring();

StopMonitoring

_networkManagerProxy.StopMonitoring();

NetworkManager

A Cross platform wrapper for NetworkManager on iOS and Android

Usage:

    using Subsystems.NetworkManagerShared.External;

...
...

    private CMPNetworkManagerSharedProxy _networkManagerProxy;

Initialize

    _networkManagerProxy = new CMPNetworkManagerSharedProxy(this);

NetworkStatusChanged

_networkManagerProxy.NetworkStatusChanged += (object sender,
                                                          CMPNetworkEventArgs e) =>
{

    Console.WriteLine(e.State);

};

_networkManagerProxy.StartMonitoring();

IsNetworkReachable

_networkManagerProxy.IsNetworkReachable();

StartMonitoring

_networkManagerProxy.StartMonitoring();

StopMonitoring

_networkManagerProxy.StopMonitoring();

Release Notes

1. Initial version for NetworkMananger component for iOS and Android
2. Wraps platform specific frameworks
3. Supports only Wifi and Cellular types

Version History

Version Downloads Last updated
1.0.2 146 10/22/2018
1.0.0 89 10/19/2018