WifiManager.CalculateSignalLevel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CalculateSignalLevel(Int32) |
Given a raw RSSI, return the RSSI signal quality rating using the system default RSSI quality rating thresholds. |
CalculateSignalLevel(Int32, Int32) |
Calculates the level of the signal. |
CalculateSignalLevel(Int32)
Given a raw RSSI, return the RSSI signal quality rating using the system default RSSI quality rating thresholds.
[Android.Runtime.Register("calculateSignalLevel", "(I)I", "GetCalculateSignalLevel_IHandler", ApiSince=30)]
public virtual int CalculateSignalLevel (int rssi);
[<Android.Runtime.Register("calculateSignalLevel", "(I)I", "GetCalculateSignalLevel_IHandler", ApiSince=30)>]
abstract member CalculateSignalLevel : int -> int
override this.CalculateSignalLevel : int -> int
Parameters
- rssi
- Int32
a raw RSSI value, in dBm, usually between -55 and -90
Returns
the RSSI signal quality rating, in the range
[0, #getMaxSignalLevel()
], where 0 is the lowest (worst signal) RSSI
rating and #getMaxSignalLevel()
is the highest (best signal) RSSI rating.
- Attributes
Remarks
Given a raw RSSI, return the RSSI signal quality rating using the system default RSSI quality rating thresholds.
Java documentation for android.net.wifi.WifiManager.calculateSignalLevel(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
CalculateSignalLevel(Int32, Int32)
Calculates the level of the signal.
[Android.Runtime.Register("calculateSignalLevel", "(II)I", "")]
public static int CalculateSignalLevel (int rssi, int numLevels);
[<Android.Runtime.Register("calculateSignalLevel", "(II)I", "")>]
static member CalculateSignalLevel : int * int -> int
Parameters
- rssi
- Int32
The power of the signal measured in RSSI.
- numLevels
- Int32
The number of levels to consider in the calculated level.
Returns
A level of the signal, given in the range of 0 to numLevels-1 (both inclusive).
- Attributes
Remarks
Calculates the level of the signal. This should be used any time a signal is being shown.
This member is deprecated. Callers should use #calculateSignalLevel(int)
instead to get the signal level using the system default RSSI thresholds, or otherwise compute the RSSI level themselves using their own formula.
Java documentation for android.net.wifi.WifiManager.calculateSignalLevel(int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.