Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 504 Bytes
using Android.Telephony;
namespace GetMobileNetworkStrength
{
public class GsmSignalStrengthListener : PhoneStateListener
{
public delegate void SignalStrengthChangedDelegate(int strength);
public event SignalStrengthChangedDelegate SignalStrengthChanged;
public override void OnSignalStrengthsChanged(SignalStrength newSignalStrength)
{
if (newSignalStrength.IsGsm)
{
if (SignalStrengthChanged != null)
{
SignalStrengthChanged(newSignalStrength.GsmSignalStrength);
}
}
}
}
}