WifiInfo:
Describes the state of any Wifi connection that is active or is in the process of being set up.
描述任何Wifi连接处于活动状态或者正在建立的过程中的状态。
public String getBSSID ()
Return the basic service set identifier (BSSID) of the current access point. The BSSID may be null if there is no network currently connected.
返回当前接入点的基本服务集标识符(BSSID)。其中使用的BSSID可为空,如果没有当前连接的网络。
public static NetworkInfo.DetailedState getDetailedStateOf (SupplicantState suppState)
Map a supplicant state into a fine-grained network connectivity state.
映射请求者状态转变为细粒度的网络连接状态。
WifiConfiguration:
A class representing a configured Wi-Fi network, including the security configuration.
一个类代表一个已配置的Wi-Fi网络,包括安全配置。
allowedAuthAlgorithms:
The set of authentication protocols supported by this configuration.
WifiManager:
This class provides the primary API for managing all aspects of Wi-Fi connectivity. Get an instance of this class by calling Context.getSystemService(Context.WIFI_SERVICE). It deals with several categories of items:
这个类提供用于管理Wi-Fi连接各个环节的主要API。通过调用Context.getSystemService(Context.WIFI_SERVICE)获取这个类的一个实例。它涉及几类项目:
The list of configured networks. The list can be viewed and updated, and attributes of individual entries can be modified.
配置的网络列表。该列表可以查看和更新,各个条目的属性进行修改。
The currently active Wi-Fi network, if any. Connectivity can be established or torn down, and dynamic information about the state of the network can be queried.
当前激活的Wi-Fi网络,如果有的话。连接可以建立或拆掉,和有关网络的状态的动态信息可以被查询。
Results of access point scans, containing enough information to make decisions about what access point to connect to.
接入点扫描的结果,包含了足够的信息,以做出什么接入点连接到决策。
It defines the names of various Intent actions that are broadcast upon any sort of change in Wi-Fi state.
This is the API to use when performing Wi-Fi specific operations. To perform operations that pertain to network connectivity at an abstract level, use ConnectivityManager.
它定义了任何形式的改变Wi-Fi状态的时所广播的各种意图的动作的名称。
这是进行无线网络连接的具体操作时要使用的API。执行一些与在抽象的层面与网络连接操作,使用ConnectivityManager。