public class ScanResult extends Object implements Parcelable
quality
, noise
, and maxbitrate
attributes,
but does not currently report them to external clients.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
String |
BSSID
The address of the access point.
|
String |
capabilities
Describes the authentication, key management, and encryption schemes
supported by the access point.
|
static Parcelable.Creator<ScanResult> |
CREATOR
Implement the Parcelable interface
|
int |
frequency
The frequency in MHz of the channel over which the client is communicating
with the access point.
|
int |
level
The detected signal level in dBm.
|
String |
SSID
The network name.
|
long |
timestamp
Time Synchronization Function (tsf) timestamp in microseconds when
this result was last seen.
|
WifiSsid |
wifiSsid
Ascii encoded SSID.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ScanResult(ScanResult source)
copy constructor
|
ScanResult(WifiSsid wifiSsid,
String BSSID,
String caps,
int level,
int frequency,
long tsf) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Implement the Parcelable interface
|
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
void |
writeToParcel(Parcel dest,
int flags)
Implement the Parcelable interface
|
public String SSID
public WifiSsid wifiSsid
public String BSSID
public String capabilities
public int level
public int frequency
public long timestamp
public static final Parcelable.Creator<ScanResult> CREATOR
public ScanResult(WifiSsid wifiSsid, String BSSID, String caps, int level, int frequency, long tsf)
public ScanResult(ScanResult source)
public String toString()
Object
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
public int describeContents()
describeContents
in interface Parcelable
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
.