一、WifiP2pManager相关类
WifiP2pManager
This class provides the API for managing Wi-Fi peer-to-peer connectivity. This lets an application discover available peers, setup connection to peers and query for the list of peers.When a p2p connection is formed over wifi, the device continues to maintain the uplink connection over mobile or any other available network for internet connectivity on the device.
此类提供用于管理 Wi-Fi 对等连接的 API。这允许应用程序发现可用的对等方,设置与对等方的连接并查询对等方列表。当通过 wifi 形成 p2p 连接时,设备将继续通过移动设备或任何其他可用网络保持上行链路连接,以便在设备上进行互联网连接。
WifiP2pManager文件路径:
packages/modules/Wifi/framework/java/android/net/wifi/p2p/WifiP2pManager.java
WifiP2pManager定义:
public class WifiP2pManager {
public static class Channel implements AutoCloseable {}
public interface ExternalApproverRequestListener {}
public interface DeviceInfoListener {}
public interface OngoingPeerInfoListener {
public interface NetworkInfoListener {
public interface DiscoveryStateListener {
public interface P2pStateListener {}
public interface HandoverMessageListener {}
public interface PersistentGroupInfoListener {}
public interface UpnpServiceResponseListener {}
public interface DnsSdTxtRecordListener {}
public interface DnsSdServiceResponseListener {}
public interface ServiceResponseListener {}
public interface GroupInfoListener {}
public interface ConnectionInfoListener {}
public interface PeerListListener {}
public interface ActionListener {}
public interface ChannelListener {}
}
WifiP2pConfig
A class representing a Wi-Fi P2p configuration for setting up a connection
表示用于设置连接的 Wi-Fi P2p 配置的类
WifiP2pManager文件路径:
packages/modules/Wifi/framework/java/android/net/wifi/p2p/WifiP2pConfig.java
WifiP2pConfig定义:
public class WifiP2pConfig implements Parcelable {}
WifiP2pWfdInfo
A class representing Wifi Display information for a

最低0.47元/天 解锁文章
1781

被折叠的 条评论
为什么被折叠?



