RangingRequest.Builder.AddAccessPoints(IList<ScanResult>) 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.
Add the devices specified by the ScanResults to the list of devices with which to measure range.
[Android.Runtime.Register("addAccessPoints", "(Ljava/util/List;)Landroid/net/wifi/rtt/RangingRequest$Builder;", "", ApiSince=28)]
public Android.Net.Wifi.Rtt.RangingRequest.Builder AddAccessPoints(System.Collections.Generic.IList<Android.Net.Wifi.ScanResult> apInfos);
[<Android.Runtime.Register("addAccessPoints", "(Ljava/util/List;)Landroid/net/wifi/rtt/RangingRequest$Builder;", "", ApiSince=28)>]
member this.AddAccessPoints : System.Collections.Generic.IList<Android.Net.Wifi.ScanResult> -> Android.Net.Wifi.Rtt.RangingRequest.Builder
Parameters
- apInfos
- IList<ScanResult>
Information about Access Points (APs) obtained in a Scan Result. This value cannot be null.
Returns
The builder to facilitate chaining builder.setXXX(..).setXXX(..). This value cannot be null.
- Attributes
Remarks
Add the devices specified by the ScanResults to the list of devices with which to measure range. The total number of peers added to a request cannot exceed the limit specified by RangingRequest.getMaxPeers().
Two-sided Ranging will be performed if the local device and the AP support IEEE 802.11az (non-trigger based ranging) or IEEE 802.11mc. AP capability is determined by the method ScanResult.is80211azNtbResponder() or ScanResult.is80211mcResponder(). If both 11az and 11mc are supported by the local device and the AP, 11az non-trigger based ranging will be performed. If two-sided ranging is not supported, one-sided RTT will be performed with no correction for the AP packet turnaround time.
Android reference for android.net.wifi.rtt.RangingRequest.Builder.addAccessPoints.
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.