WifiP2pManager.WifiP2pThisDeviceChangedAction Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Broadcast intent action indicating that this device details have changed.
[Android.Runtime.Register("WIFI_P2P_THIS_DEVICE_CHANGED_ACTION")]
public const string WifiP2pThisDeviceChangedAction;
[<Android.Runtime.Register("WIFI_P2P_THIS_DEVICE_CHANGED_ACTION")>]
val mutable WifiP2pThisDeviceChangedAction : string
Field Value
- Attributes
Remarks
Broadcast intent action indicating that this device details have changed.
An extra #EXTRA_WIFI_P2P_DEVICE
provides this device details. The valid device details can also be obtained with #requestDeviceInfo(Channel, DeviceInfoListener)
when p2p is enabled. To get information notifications on P2P getting enabled refers #WIFI_P2P_STATE_ENABLED
.
The #EXTRA_WIFI_P2P_DEVICE
extra contains an anonymized version of the device's MAC address. Callers holding the android.Manifest.permission#LOCAL_MAC_ADDRESS
permission can use #requestDeviceInfo
to obtain the actual MAC address of this device.
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
Java documentation for android.net.wifi.p2p.WifiP2pManager.WIFI_P2P_THIS_DEVICE_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.