Android.Net.Wifi Namespace

Provides classes to manage Wi-Fi functionality on the device.

Classes

Name Description
BlockingOption

Options for blocking a network through WifiManager#disallowCurrentSuggestedNetwork(BlockingOption)

BlockingOption.Builder

Builder used to create BlockingOption objects.

BlockingOption.InterfaceConsts

Contains the parcel constants inherited by BlockingOption.

EasyConnectStatusCallback

Easy Connect (DPP) Status Callback.

MloLink

Data structure class representing a Wi-Fi Multi-Link Operation (MLO) link This is only used by 802.

MloLink.InterfaceConsts

Contains the parcel constants inherited by MloLink.

ScanResult

Describes information about a detected access point.

ScanResult.InformationElement

information elements from beacon.

ScanResult.InformationElement.InterfaceConsts

Contains the parcel constants inherited by ScanResult.InformationElement.

ScanResult.InterfaceConsts

Contains the parcel constants inherited by ScanResult.

SoftApConfiguration

Configuration for a soft access point (a.

SoftApConfiguration.Builder

Builds a SoftApConfiguration, which allows an app to configure various aspects of a Soft AP.

SoftApConfiguration.InterfaceConsts

Contains the parcel constants inherited by SoftApConfiguration.

SupplicantState

From defs.h in wpa_supplicant.

SupplicantState.InterfaceConsts

Contains the parcel constants inherited by SupplicantState.

WifiAvailableChannel

Contains information about a Wifi channel and bitmask of Wifi operational modes allowed on that channel.

WifiAvailableChannel.InterfaceConsts

Contains the parcel constants inherited by WifiAvailableChannel.

WifiConfiguration

A class representing a configured Wi-Fi network, including the security configuration.

WifiConfiguration.AuthAlgorithm

Recognized IEEE 802.

WifiConfiguration.GroupCipher

Recognized group ciphers.

WifiConfiguration.GroupMgmtCipher

Recognized group management ciphers.

WifiConfiguration.InterfaceConsts

Contains the parcel constants inherited by WifiConfiguration.

WifiConfiguration.KeyMgmt

Recognized key management schemes.

WifiConfiguration.PairwiseCipher

Recognized pairwise ciphers for WPA.

WifiConfiguration.Protocol

Recognized security protocols.

WifiConfiguration.Status

Possible status of a network configuration.

WifiEnterpriseConfig

Enterprise configuration details for Wi-Fi.

WifiEnterpriseConfig.Eap

The Extensible Authentication Protocol method used

WifiEnterpriseConfig.InterfaceConsts

Contains the parcel constants inherited by WifiEnterpriseConfig.

WifiEnterpriseConfig.Phase2

The inner authentication method used

WifiInfo

Describes the state of any Wi-Fi connection that is active or is in the process of being set up.

WifiInfo.Builder

Builder for WifiInfo

WifiInfo.InterfaceConsts

Contains the parcel constants inherited by WifiInfo.

WifiManager

This class provides the primary API for managing all aspects of Wi-Fi connectivity.

WifiManager.AddNetworkResult

Provides the results of a call to #addNetworkPrivileged(WifiConfiguration)

WifiManager.AddNetworkResult.InterfaceConsts

Contains the parcel constants inherited by WifiManager.AddNetworkResult.

WifiManager.InterfaceCreationImpact

Class describing an impact of interface creation - returned by #reportCreateInterfaceImpact(int, boolean, Executor, BiConsumer).

WifiManager.LocalOnlyConnectionFailureEventArgs

Carries the network specifier and reason for a failed local-only connection.

WifiManager.LocalOnlyHotspotCallback

Callback class for applications to receive updates about the LocalOnlyHotspot status.

WifiManager.LocalOnlyHotspotReservation

LocalOnlyHotspotReservation that contains the SoftApConfiguration for the active LocalOnlyHotspot request.

WifiManager.MulticastLock

Allows an application to receive Wifi Multicast packets.

WifiManager.ScanResultsCallback

Abstract class for scan results callback.

WifiManager.SubsystemRestartTrackingCallback

Abstract callback class for applications to receive updates about the Wi-Fi subsystem restarting.

WifiManager.SuggestionConnectionStatusEventArgs

Carries a network suggestion and its connection failure reason.

WifiManager.SuggestionUserApprovalStatusEventArgs

Carries the application's network-suggestion approval status.

WifiManager.WifiLock

Allows an application to keep the Wi-Fi radio awake.

WifiManager.WpsCallback

Interface for callback invocation on a start WPS action

WifiNetworkSpecifier

Network specifier object used to request a Wi-Fi network.

WifiNetworkSpecifier.Builder

Builder used to create WifiNetworkSpecifier objects.

WifiNetworkSpecifier.InterfaceConsts

Contains the parcel constants inherited by WifiNetworkSpecifier.

WifiNetworkSuggestion

The Network Suggestion object is used to provide a Wi-Fi network for consideration when auto-connecting to networks.

WifiNetworkSuggestion.Builder

Builder used to create WifiNetworkSuggestion objects.

WifiNetworkSuggestion.InterfaceConsts

Contains the parcel constants inherited by WifiNetworkSuggestion.

WifiSsid

Representation of a Wi-Fi Service Set Identifier (SSID).

WifiSsid.InterfaceConsts

Contains the parcel constants inherited by WifiSsid.

WpsInfo

A class representing Wi-Fi Protected Setup

WpsInfo.InterfaceConsts

Contains the parcel constants inherited by WpsInfo.

Interfaces

Name Description
WifiManager.ILocalOnlyConnectionFailureListener

Interface for local-only connection failure listener.

WifiManager.ISuggestionConnectionStatusListener

Interface for suggestion connection status listener.

WifiManager.ISuggestionUserApprovalStatusListener

Interface for network suggestion user approval status change listener.

WifiManager.IWifiStateChangedListener

Listener interface for applications to be notified when the Wi-Fi enabled state changes.

Enums

Name Description
ActionRemoveSuggestionType

Specifies when to disconnect a network after its suggestion is removed.

AddNetworkResultStatus

Identifies the result of adding or updating a Wi-Fi network configuration.

AuthAlgorithmType

Enumerates values returned by several types.

EasyConnectEventFailure

Identifies failure reasons for Wi-Fi Easy Connect operations.

GroupCipherType

Enumerates values returned by several types.

InterfaceType

Identifies station, hotspot, Wi-Fi Aware, and Wi-Fi Direct interfaces.

KeyManagementType

Enumerates values returned by several types.

LocalOnlyHotspotCallbackErrorCode

Identifies why a local-only hotspot request failed.

MloLinkState

Identifies a multi-link connection's association and traffic-mapping state.

MultiInternetMode

Selects the mode for concurrent Wi-Fi internet connections.

NetworkStatus

Identifies the result of adding or removing Wi-Fi network suggestions.

PairwiseCipherType

Enumerates values returned by several types.

Preamble

Identifies legacy, HT, VHT, HE, and EHT Wi-Fi preamble formats.

ProtocolType

Enumerates values returned by several types.

RoamingMode

Selects disabled, normal, or aggressive Wi-Fi roaming.

SendDhcpHostnameRestriction

Selects network categories on which to suppress the DHCP hostname.

SoftApConfigurationBand

Identifies frequency bands for a software access point configuration.

SoftApConfigurationSecurityType

Selects the security mode of a software access point.

StatusLocalOnlyConnectionFailureReason

Identifies the failure stage or rejection reason of a local-only Wi-Fi connection.

StatusSuggestionApproval

Identifies an application's network-suggestion approval state.

StatusSuggestionConnectionFailure

Identifies the failure stage of a connection made from a network suggestion.

WifiAvailableChannelModes

Specifies the Wi-Fi operating modes to which a channel applies.

WifiBand

Identifies Wi-Fi frequency-band codes.

WifiChannelWidth

Identifies encoded Wi-Fi channel widths, including contiguous and 80+80 MHz channels.

WifiConfigurationRandomization

Specifies the MAC address randomization strategy for connections to a Wi-Fi network.

WifiConfigurationSecurityType

Identifies security configurations for a saved Wi-Fi network.

WifiEapMethod

Enumerates values returned by several types.

WifiEnterpriseConfigTlsVersion

Identifies TLS versions for enterprise Wi-Fi authentication.

WifiNetworkSuggestionRandomization

Selects persistent or non-persistent MAC randomization for a network suggestion.

WifiPhase2Method

Enumerates values returned by several types.

WifiSecurityType

Identifies the security type reported for a Wi-Fi connection.

WifiStandard

Identifies the Wi-Fi standard reported for a connection or scan result.

WifiStatus

Enumerates values returned by several types.

WpsFailureReason

Enumerates values returned by several methods of WpsFailureReason.