Android.Net.Wifi.Aware Namespace

Provides Wi-Fi Aware service discovery, peer messaging, pairing, and data path APIs.

Classes

Name Description
AttachCallback

Base class for Aware attach callbacks.

AwareDataPathRequest

A request to set up a data path for a Wi-Fi Aware network.

AwareDataPathRequest.Builder

A builder class for a Wi-Fi Aware data path request to set up a data path with a peer device.

AwareDataPathRequest.InterfaceConsts

Contains the IParcelable constants exposed for AwareDataPathRequest.

AwarePairingConfig

The config for the Aware Pairing.

AwarePairingConfig.Builder

Builder used to build AwarePairingConfig objects.

AwarePairingConfig.InterfaceConsts

Contains the IParcelable constants exposed for AwarePairingConfig.

AwareResources

The resources of the Aware service.

AwareResources.InterfaceConsts

Contains the IParcelable constants exposed for AwareResources.

Characteristics

The characteristics of the Wi-Fi Aware implementation.

Characteristics.InterfaceConsts

Contains the IParcelable constants exposed for Characteristics.

DiscoverySession

A class representing a single publish or subscribe Aware session.

DiscoverySessionCallback

Base class for Aware session events callbacks.

IdentityChangedListener

Base class for Aware identity/cluster changes callbacks.

ParcelablePeerHandle

A Parcelable PeerHandle.

ParcelablePeerHandle.InterfaceConsts

Contains the IParcelable constants exposed for ParcelablePeerHandle.

PeerHandle

Opaque object used to represent a Wi-Fi Aware peer.

PublishConfig

Defines the configuration of an Aware publish session.

PublishConfig.Builder

Builder used to build PublishConfig objects.

PublishConfig.InterfaceConsts

Contains the IParcelable constants exposed for PublishConfig.

PublishDiscoverySession

A class representing a Aware publish session.

ServiceDiscoveryInfo

An object providing information about a Wi-Fi Aware discovery session with a specific peer.

SubscribeConfig

Defines the configuration of an Aware subscribe session.

SubscribeConfig.Builder

Builder used to build SubscribeConfig objects.

SubscribeConfig.InterfaceConsts

Contains the IParcelable constants exposed for SubscribeConfig.

SubscribeDiscoverySession

A class representing a Aware subscribe session.

WifiAwareChannelInfo

Wi-Fi Aware data-path channel information.

WifiAwareChannelInfo.InterfaceConsts

Contains the IParcelable constants exposed for WifiAwareChannelInfo.

WifiAwareDataPathSecurityConfig

Wi-Fi Aware data-path security config.

WifiAwareDataPathSecurityConfig.Builder

A builder class for a Wi-Fi Aware data-path security config to encrypt an Aware connection.

WifiAwareDataPathSecurityConfig.InterfaceConsts

Contains the IParcelable constants exposed for WifiAwareDataPathSecurityConfig.

WifiAwareManager

This class provides the primary API for managing Wi-Fi Aware operations: discovery and peer-to-peer data connections.

WifiAwareNetworkInfo

Wi-Fi Aware-specific network information.

WifiAwareNetworkInfo.InterfaceConsts

Contains the IParcelable constants exposed for WifiAwareNetworkInfo.

WifiAwareNetworkSpecifier

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

WifiAwareNetworkSpecifier.Builder

A builder class for a Wi-Fi Aware network specifier to set up an Aware connection with a peer.

WifiAwareNetworkSpecifier.InterfaceConsts

Contains the IParcelable constants exposed for WifiAwareNetworkSpecifier.

WifiAwareSession

This class represents a Wi-Fi Aware session - an attachment to the Wi-Fi Aware service through which the app can execute discovery operations.

Enums

Name Description
AwarePairingBootstrappingMethods

Specifies the Wi-Fi Aware pairing bootstrapping methods selected in a pairing configuration.

ClusterChangeEvent

Identifies whether a Wi-Fi Aware cluster was started or joined.

DataPathConnectionFailureReason

Identifies why a Wi-Fi Aware data path connection failed.

PublishType

Specifies whether a Wi-Fi Aware publisher broadcasts service advertisements or responds to active subscribers.

SubscribeType

Specifies whether a Wi-Fi Aware subscriber listens passively for advertisements or transmits discovery requests.

WifiAwareCipherSuite

Identifies Wi-Fi Aware cipher suites and the unencrypted data path option.

WifiAwareDataPathRole

Specifies whether a device initiates or responds to a Wi-Fi Aware data path connection request.

WifiAwareDiscoveryLostReason

Identifies why a Wi-Fi Aware service discovery match was lost.

Remarks

Use WifiAwareManager to attach to Wi-Fi Aware, then use WifiAwareSession to publish or subscribe to services. Discovery callbacks identify peers for message exchange and data path requests without an existing Wi-Fi access point connection.

Check device support and current availability before starting a session. Use Characteristics to check optional capabilities, such as pairing and supported cipher suites. API availability alone does not establish device support.

Android 17 Wi-Fi Aware manager implementation.