public override void OnSignalStrengthsChanged(Android.Telephony.SignalStrength signalStrength)
 {
     base.OnSignalStrengthsChanged(signalStrength);
     if (signalStrength.IsGsm)
     {
         SignalStrengthChanged?.Invoke(signalStrength.GsmSignalStrength);
     }
 }
		public override void OnSignalStrengthsChanged(SignalStrength newSignalStrength)
		{
			if (newSignalStrength.IsGsm)
			{
				if (SignalStrengthChanged != null)
				{
					SignalStrengthChanged(newSignalStrength.GsmSignalStrength);
				}
			}
		}
Esempio n. 3
0
            /// <summary>
            /// Get the Signal strength from the provider, each time there is an update
            /// </summary>
            /// <param name="signalStrength">has all the useful signal stuff in it.</param>
            public override void OnSignalStrengthsChanged(SignalStrength signalStrength)
            {
                base.OnSignalStrengthsChanged(signalStrength);

                if (signalStrength != null) {
                    si.setSignalInfo(signalStrength);
                    Log.Debug(TAG, "getting sig strength");
                    Log.Debug(TAG, signalStrength.ToString());
                }
            }
Esempio n. 4
0
        /// <summary>
        /// Set the signal info the user sees.
        /// </summary>
        /// <param name="signalStrength">contains all the signal info</param>
        /// <see cref="Android.Telephony.SignalStrength"/>
        private void setSignalInfo(SignalStrength signalStrength)
        {
            Log.Debug(TAG, "formatting sig str");
            var spaceStr = new Regex(" ");
            string[] sigInfo = formatSignalData(spaceStr.Split(signalStrength.ToString()));

            Log.Debug("Signal Array", sigInfo.ToString());
            displaySignalInfo(sigInfo);
        }