RangingStatus Enum
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.
Specifies status codes for individual Wi-Fi RTT measurements and the unspecified-value constant.
public enum RangingStatus
type RangingStatus =
- Inheritance
-
RangingStatus
Fields
| Name | Value | Description |
|---|---|---|
| Unspecified | -1 | The unspecified value. Android reference for 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. |
| Success | 0 | Individual range request status, getStatus(). Indicates ranging operation was successful and distance value is valid. Android reference for 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. |
| Fail | 1 | Individual range request status, getStatus(). Indicates ranging operation failed and the distance value is invalid. Android reference for 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. |
| ResponderDoesNotSupportIeee80211mc | 2 | Individual range request status, getStatus(). Indicates that the ranging operation failed because the specified peer does not support IEEE 802.11mc RTT operations. Support by an Access Point can be confirmed using ScanResult.is80211mcResponder(). On such a failure, the individual result fields of RangingResult such as RangingResult.getDistanceMm() are invalid. 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. |
| BusyTryLater | 12 | Individual range request status, getStatus(). Indicates that the ranging operation failed because the peer is busy and unable to handle the request at this time. The requester should try again after a suggested delay, which can be retrieved with getRetryAfterDurationMillis(). Android reference for 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. |
Remarks
Status reports the status for one peer. Distance and other success-only fields cannot be read after a failed measurement. The Unspecified value also represents unavailable result fields; it is not a successful measurement status.