public static class WifiScanner.ScanSettings extends Object implements Parcelable
WifiScanner.startBackgroundScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener)
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
int |
band
one of the WIFI_BAND values
|
WifiScanner.ChannelSpec[] |
channels
list of channels; used when band is set to WIFI_BAND_UNSPECIFIED
|
static Parcelable.Creator<WifiScanner.ScanSettings> |
CREATOR
Implement the Parcelable interface
|
int[] |
hiddenNetworkIds
list of networkId's of hidden networks to scan for.
|
boolean |
isPnoScan
Flag to indicate if the scan settings are targeted for PNO scan.
|
int |
maxPeriodInMs
if maxPeriodInMs is non zero or different than period, then this bucket is
a truncated binary exponential backoff bucket and the scan period will grow
exponentially as per formula: actual_period(N) = period * (2 ^ (N/stepCount))
to maxPeriodInMs
|
int |
maxScansToCache
defines number of scans to cache; use it with REPORT_EVENT_AFTER_BUFFER_FULL
to wake up at fixed interval
|
int |
numBssidsPerScan
defines number of bssids to cache from each scan
|
int |
periodInMs
period of background scan; in millisecond, 0 => single shot scan
|
int |
reportEvents
must have a valid REPORT_EVENT value
|
int |
stepCount
for truncated binary exponential back off bucket, number of scans to perform
for a given period
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ScanSettings() |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Implement the Parcelable interface
|
void |
writeToParcel(Parcel dest,
int flags)
Implement the Parcelable interface
|
public int band
public WifiScanner.ChannelSpec[] channels
public int[] hiddenNetworkIds
public int periodInMs
public int reportEvents
public int numBssidsPerScan
public int maxScansToCache
public int maxPeriodInMs
public int stepCount
public boolean isPnoScan
public static final Parcelable.Creator<WifiScanner.ScanSettings> CREATOR
public int describeContents()
describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.