WifiP2pManager.RemoveExternalApprover Method
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.
Remove the external approver for a specific peer.
[Android.Runtime.Register("removeExternalApprover", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/MacAddress;Landroid/net/wifi/p2p/WifiP2pManager$ActionListener;)V", "GetRemoveExternalApprover_Landroid_net_wifi_p2p_WifiP2pManager_Channel_Landroid_net_MacAddress_Landroid_net_wifi_p2p_WifiP2pManager_ActionListener_Handler", ApiSince=33)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_WIFI_NETWORK_SELECTION")]
public virtual void RemoveExternalApprover(Android.Net.Wifi.P2p.WifiP2pManager.Channel c, Android.Net.MacAddress deviceAddress, Android.Net.Wifi.P2p.WifiP2pManager.IActionListener? listener);
[<Android.Runtime.Register("removeExternalApprover", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/MacAddress;Landroid/net/wifi/p2p/WifiP2pManager$ActionListener;)V", "GetRemoveExternalApprover_Landroid_net_wifi_p2p_WifiP2pManager_Channel_Landroid_net_MacAddress_Landroid_net_wifi_p2p_WifiP2pManager_ActionListener_Handler", ApiSince=33)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_WIFI_NETWORK_SELECTION")>]
abstract member RemoveExternalApprover : Android.Net.Wifi.P2p.WifiP2pManager.Channel * Android.Net.MacAddress * Android.Net.Wifi.P2p.WifiP2pManager.IActionListener -> unit
override this.RemoveExternalApprover : Android.Net.Wifi.P2p.WifiP2pManager.Channel * Android.Net.MacAddress * Android.Net.Wifi.P2p.WifiP2pManager.IActionListener -> unit
Parameters
The channel created by Initialize(Context, Looper, WifiP2pManager+IChannelListener). This value cannot be null.
- deviceAddress
- MacAddress
the peer which is bound to the external approver. This value cannot be null.
- listener
- WifiP2pManager.IActionListener
for callback on success or failure. This value may be null.
- Attributes
Remarks
Remove the external approver for a specific peer. The app needs android.permission.NEARBY_WIFI_DEVICES. If it does not declare android:usesPermissionFlags="neverForLocation" for that permission, it also needs android.permission.ACCESS_FINE_LOCATION. Requires android.permission.MANAGE_WIFI_NETWORK_SELECTION
Android reference for android.net.wifi.p2p.WifiP2pManager.removeExternalApprover.
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.