Android WifiP2pManager

一、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

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值