ResponderConfig.PeerHandle Property
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.
Returns the Wi-Fi Aware peer identifier of the responder.
public Android.Net.Wifi.Aware.PeerHandle? PeerHandle { [Android.Runtime.Register("getPeerHandle", "()Landroid/net/wifi/aware/PeerHandle;", "", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getPeerHandle", "()Landroid/net/wifi/aware/PeerHandle;", "", ApiSince=37)>]
member this.PeerHandle : Android.Net.Wifi.Aware.PeerHandle
Property Value
The PeerHandle of the Wi-Fi Aware responder, or null
if the responder is not an Aware peer or is identified by its MAC address.
- Attributes
Remarks
Returns the Wi-Fi Aware peer identifier of the responder.
This value is non-null if the responder is a Wi-Fi Aware peer and was configured using a PeerHandle (via ResponderConfig.Builder.setPeerHandle(PeerHandle)). The PeerHandle is an opaque identifier for a specific Aware peer discovered during Wi-Fi Aware operations, such as service discovery.
If the responder is not an Aware peer, or if it was configured using its MAC address (via ResponderConfig.Builder.setMacAddress(MacAddress)), this method will return null.
Only one of getPeerHandle() or getMacAddress() will return a non-null value for a valid ResponderConfig.
Android reference for android.net.wifi.rtt.ResponderConfig.getPeerHandle.
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.