FileDocCategorySizeDatePackage
WifiChannel.javaAPI DocAndroid 5.1 API2422Thu Mar 12 22:22:44 GMT 2015android.net.wifi

WifiChannel

public class WifiChannel extends Object implements android.os.Parcelable
Wifi Channel
see
ScanSettings
hide

Fields Summary
private static final int
MIN_FREQ_MHZ
private static final int
MAX_FREQ_MHZ
private static final int
MIN_CHANNEL_NUM
private static final int
MAX_CHANNEL_NUM
public int
freqMHz
frequency
public int
channelNum
channel number
public boolean
isDFS
is it a DFS channel?
public static final Parcelable.Creator
CREATOR
implement Parcelable interface
Constructors Summary
public WifiChannel()
public constructor


       
       
Methods Summary
public intdescribeContents()
implement Parcelable interface

        return 0;
    
public booleanisValid()
check for validity

        if (freqMHz < MIN_FREQ_MHZ || freqMHz > MAX_FREQ_MHZ) return false;
        if (channelNum < MIN_CHANNEL_NUM || channelNum > MAX_CHANNEL_NUM) return false;
        return true;
    
public voidwriteToParcel(android.os.Parcel out, int flags)
implement Parcelable interface

        out.writeInt(freqMHz);
        out.writeInt(channelNum);
        out.writeInt(isDFS ? 1 : 0);