Partager via


WifiP2pManager.WifiP2pPeersChangedAction Field

Definition

Broadcast intent action indicating that the available peer list has changed.

[Android.Runtime.Register("WIFI_P2P_PEERS_CHANGED_ACTION")]
public const string WifiP2pPeersChangedAction;
[<Android.Runtime.Register("WIFI_P2P_PEERS_CHANGED_ACTION")>]
val mutable WifiP2pPeersChangedAction : string

Field Value

Attributes

Remarks

Broadcast intent action indicating that the available peer list has changed. This can be sent as a result of peers being found, lost or updated.

All of these permissions are required to receive this broadcast: android.Manifest.permission#ACCESS_WIFI_STATE and either android.Manifest.permission#ACCESS_FINE_LOCATION or android.Manifest.permission#NEARBY_WIFI_DEVICES

An extra #EXTRA_P2P_DEVICE_LIST provides the full list of current peers. The full list of peers can also be obtained any time with #requestPeers.

Java documentation for android.net.wifi.p2p.WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also