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

The Wi-Fi APIs provide a means by which applications can communicate with the lower-level wireless stack that provides Wi-Fi network access. Almost all information from the device supplicant is available, including the connected network’s link speed, IP address, negotiation state, and more, plus information about other networks that are available. Some other API features include the ability to scan, add, save, terminate and initiate Wi-Fi connections.

Some APIs may require the following user permissions:

ACCESS_WIFI_STATECHANGE_WIFI_STATECHANGE_WIFI_MULTICAST_STATE

Note: Not all Android-powered devices provide Wi-Fi functionality. If your application uses Wi-Fi, declare so with a element in the manifest file:




Interfaces
WifiManager.SuggestionConnectionStatusListener Interface for suggestion connection status listener.
Classes
EasyConnectStatusCallback Easy Connect (DPP) Status Callback.
ScanResult Describes information about a detected access point.
ScanResult.InformationElement information elements from beacon.
SoftApConfiguration Configuration for a soft access point (a.k.a.
WifiConfiguration This class was deprecated in API level 29. Use WifiNetworkSpecifier.Builder to create NetworkSpecifier and WifiNetworkSuggestion.Builder to create WifiNetworkSuggestion. This will become a system use only object in the future.
WifiConfiguration.AuthAlgorithm Recognized IEEE 802.11 authentication algorithms.
WifiConfiguration.GroupCipher Recognized group ciphers.
WifiConfiguration.GroupMgmtCipher Recognized group management ciphers.
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.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
WifiManager This class provides the primary API for managing all aspects of Wi-Fi connectivity.
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.WifiLock Allows an application to keep the Wi-Fi radio awake.
WifiManager.WpsCallback This class was deprecated in API level 28. This is deprecated
WifiNetworkSpecifier Network specifier object used to request a local Wi-Fi network.
WifiNetworkSpecifier.Builder Builder used to create WifiNetworkSpecifier objects.
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.
WpsInfo A class representing Wi-Fi Protected Setup
Enums
SupplicantState From defs.h in wpa_supplicant.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)Activity启动耗时统计方案
  2. 转贴 Android(安卓)开发之旅:view的几种布
  3. Android(安卓)Resource介绍和使用
  4. Android进程通信Binder(1)-Binder进程通
  5. Android系统文件夹目录结构详解
  6. 持续提高 Android(安卓)应用的安全性与性
  7. Android(安卓)中内存泄漏的原因分析及解
  8. android ContentProvider实现跨进程文件
  9. Android(安卓)适配横屏
  10. 再论Android中的OnTouch事件和MotionEven