程序包 ohos.wifi.p2p

Executes or configures Wi-Fi P2P.

  • WifiP2pCallback: provides callbacks that are invoked to notify the results of Wi-Fi P2P requests.
  • WifiP2pConfig: represents the Wi-Fi P2P configuration for setting up a connection, such as the device address and passphrase.
  • WifiP2pController: provides methods for managing the Wi-Fi P2P service.
  • WifiP2pDevice: provides detailed information about the Wi-Fi P2P device, such as the device address and status.
  • WifiP2pGroup: provides detailed information about the Wi-Fi P2P group, such as the name and network ID.
  • WifiP2pNetworkInfo: provides detailed information about the Wi-Fi P2P network, such as its status.
  • 从以下版本开始:
    3
    跳过导航链接