FileDocCategorySizeDatePackage
ScanSettings.javaAPI DocAndroid 5.1 API2642Thu Mar 12 22:22:44 GMT 2015android.net.wifi

ScanSettings

public class ScanSettings extends Object implements android.os.Parcelable
Bundle of customized scan settings
see
WifiManager#startCustomizedScan
hide

Fields Summary
public Collection
channelSet
channel set to scan. this can be null or empty, indicating a full scan
public static final Parcelable.Creator
CREATOR
implement Parcelable interface
Constructors Summary
public ScanSettings()
public constructor

 
public ScanSettings(ScanSettings source)
copy constructor

        if (source.channelSet != null)
            channelSet = new ArrayList<WifiChannel>(source.channelSet);
    
Methods Summary
public intdescribeContents()
implement Parcelable interface

        return 0;
    
public booleanisValid()
check for validity

        for (WifiChannel channel : channelSet)
            if (!channel.isValid()) return false;
        return true;
    
public voidwriteToParcel(android.os.Parcel out, int flags)
implement Parcelable interface

        out.writeInt(channelSet == null ? 0 : channelSet.size());
        if (channelSet != null)
            for (WifiChannel channel : channelSet) channel.writeToParcel(out, flags);