Share via


ScanResult Class

Definition

Describes information about a detected access point.

[Android.Runtime.Register("android/net/wifi/ScanResult", DoNotGenerateAcw=true)]
public class ScanResult : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/net/wifi/ScanResult", DoNotGenerateAcw=true)>]
type ScanResult = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
ScanResult
Attributes
Implements

Remarks

Describes information about a detected access point. In addition to the attributes described here, the supplicant keeps track of quality, noise, and maxbitrate attributes, but does not currently report them to external clients.

Java documentation for android.net.wifi.ScanResult.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

ScanResult()

Construct an empty scan result.

ScanResult(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

ScanResult(ScanResult)

copy constructor

Fields

ChannelWidth320mhz
Obsolete.

AP Channel bandwidth is 320 MHZ

PreambleEht
Obsolete.

Preamble type: EHT.

PreambleHe
Obsolete.

Preamble type: HE.

PreambleHt
Obsolete.

Preamble type: HT.

PreambleLegacy
Obsolete.

Preamble type: Legacy.

PreambleVht
Obsolete.

Preamble type: VHT.

Unspecified

The unspecified value.

WifiBand24Ghz
Obsolete.

Wi-Fi 2.

WifiBand5Ghz
Obsolete.

Wi-Fi 5 GHz band.

WifiBand60Ghz
Obsolete.

Wi-Fi 60 GHz band.

WifiBand6Ghz
Obsolete.

Wi-Fi 6 GHz band.

WifiStandard11ac
Obsolete.

Wi-Fi 802.

WifiStandard11ad
Obsolete.

Wi-Fi 802.

WifiStandard11ax
Obsolete.

Wi-Fi 802.

WifiStandard11be
Obsolete.

Wi-Fi 802.

WifiStandard11n
Obsolete.

Wi-Fi 802.

WifiStandardLegacy
Obsolete.

Wi-Fi 802.

WifiStandardUnknown
Obsolete.

Wi-Fi unknown standard

Properties

AffiliatedMloLinks

Return the Multi-Link Operation (MLO) affiliated Links for Wi-Fi 7 access points.

ApMldMacAddress

Return the access point Multi-Link Device (MLD) MAC Address for Wi-Fi 7 access points.

ApMloLinkId

Return the access point Multi-Link Operation (MLO) link-id for Wi-Fi 7 access points.

Bssid

The address of the access point.

Capabilities

Describes the authentication, key management, and encryption schemes supported by the access point.

CenterFreq0

Not used if the AP bandwidth is 20 MHz If the AP use 40, 80, 160 or 320MHz, this is the center frequency (in MHz) if the AP use 80 + 80 MHz, this is the center frequency of the first segment (in MHz)

CenterFreq1

Only used if the AP bandwidth is 80 + 80 MHz if the AP use 80 + 80 MHz, this is the center frequency of the second segment (in MHz)

ChannelWidth

AP Channel bandwidth; one of #CHANNEL_WIDTH_20MHZ, #CHANNEL_WIDTH_40MHZ, #CHANNEL_WIDTH_80MHZ, #CHANNEL_WIDTH_160MHZ, #CHANNEL_WIDTH_320MHZ, or #CHANNEL_WIDTH_80MHZ_PLUS_MHZ, or #CHANNEL_WIDTH_320MHZ

Class

Returns the runtime class of this Object.

(Inherited from Object)
Creator
Frequency

The center frequency of the primary 20 MHz frequency (in MHz) of the channel over which the client is communicating with the access point.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
InformationElements

Get all information elements found in the beacon.

IsPasspointNetwork
IsTwtResponder
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Level

The detected signal level in dBm, also known as the RSSI.

OperatorFriendlyName

Indicates Passpoint operator name published by access point.

PeerReference (Inherited from Object)
Ssid

The network name.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Timestamp

timestamp in microseconds (since boot) when this result was last seen.

VenueName

Indicates venue name (such as 'San Francisco Airport') published by access point; only available on Passpoint network and if published by access point.

WifiSsid

The SSID of the access point.

WifiStandard

return the AP wifi standard.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
ConvertChannelToFrequencyMhzIfSupported(Int32, Int32)

Utility function to convert Wi-Fi channel number to frequency in MHz.

ConvertFrequencyMhzToChannelIfSupported(Int32)

Utility function to convert frequency in MHz to channel number.

DescribeContents()

Implement the Parcelable interface {

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetSecurityTypes()

Get all the security types supported by this ScanResult.

Is80211azNtbResponder()
Is80211mcResponder()
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Implement the Parcelable interface {

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to