public class WifiChannel extends Object implements Parcelable
ScanSettings
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
int |
channelNum
channel number
|
static Parcelable.Creator<WifiChannel> |
CREATOR
implement Parcelable interface
|
int |
freqMHz
frequency
|
boolean |
isDFS
is it a DFS channel?
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
WifiChannel()
public constructor
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
implement Parcelable interface
|
boolean |
isValid()
check for validity
|
void |
writeToParcel(Parcel out,
int flags)
implement Parcelable interface
|
public int freqMHz
public int channelNum
public boolean isDFS
public static final Parcelable.Creator<WifiChannel> CREATOR
public boolean isValid()
public int describeContents()
describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel out, int flags)
writeToParcel
in interface Parcelable
out
- 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
.