ScanResult.ConvertFrequencyMhzToChannelIfSupported(Int32) 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.
Utility function to convert frequency in MHz to channel number.
[Android.Runtime.Register("convertFrequencyMhzToChannelIfSupported", "(I)I", "", ApiSince=31)]
public static int ConvertFrequencyMhzToChannelIfSupported (int freqMhz);
[<Android.Runtime.Register("convertFrequencyMhzToChannelIfSupported", "(I)I", "", ApiSince=31)>]
static member ConvertFrequencyMhzToChannelIfSupported : int -> int
Parameters
- freqMhz
- Int32
frequency in MHz
Returns
channel number associated with given frequency, #UNSPECIFIED
if no match
- Attributes
Remarks
Utility function to convert frequency in MHz to channel number.
See also #convertChannelToFrequencyMhzIfSupported(int, int)
.
Java documentation for android.net.wifi.ScanResult.convertFrequencyMhzToChannelIfSupported(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.