共用方式為


RangingResultCallback.StatusCodeFailRttNotAvailable Field

Definition

Caution

This constant will be removed in the future version. Use Android.Net.Wifi.Rtt.RangingResultStatusCode enum directly instead of this field.

A failure code for the whole ranging request operation.

[Android.Runtime.Register("STATUS_CODE_FAIL_RTT_NOT_AVAILABLE", ApiSince=28)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Net.Wifi.Rtt.RangingResultStatusCode enum directly instead of this field.", true)]
public const Android.Net.Wifi.Rtt.RangingResultStatusCode StatusCodeFailRttNotAvailable = 2;
[<Android.Runtime.Register("STATUS_CODE_FAIL_RTT_NOT_AVAILABLE", ApiSince=28)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Net.Wifi.Rtt.RangingResultStatusCode enum directly instead of this field.", true)>]
val mutable StatusCodeFailRttNotAvailable : Android.Net.Wifi.Rtt.RangingResultStatusCode

Field Value

Value = 2
Attributes

Remarks

A failure code for the whole ranging request operation. Indicates that the request failed due to RTT not being available - e.g. Wi-Fi was disabled. Use the WifiRttManager#isAvailable() and WifiRttManager#ACTION_WIFI_RTT_STATE_CHANGED to track RTT availability.

Java documentation for android.net.wifi.rtt.RangingResultCallback.STATUS_CODE_FAIL_RTT_NOT_AVAILABLE.

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.

Applies to