智能客服
你问我答,随时在线为你解决问题

























尊敬的开发者,您好!
由于业务调整,我们将于2024年9月10日起不再支持新的开发者注册近距离通信服务,已开通近距离通信服务项目的开发者不受影响,仍可继续使用近距离通信服务,如有变更,我们会另行通知。感谢您的支持!
Interface Info |
|---|
public interface Distance 距离信息相关接口。它由估算距离(单位:米)和估算精度组成。 |
Qualifier and Type | Class Name and Description |
|---|---|
@interface | 距离估算精度值。 |
Qualifier and Type | Field and Description |
|---|---|
static final Distance | 表示未知距离,其Precision为PRECISION_LOW,距离为NaN。 |
Qualifier and Type | Method Name and Description |
|---|---|
int | compareTo(Distance distance) 与其他Distance对象进行比较。 |
double | 获取估算的距离。 |
int | 获取距离估算的精度。 |
Fields |
|---|
public static final Distance DISTANCE_UNKNOWN 未知距离。 Constant Value:"precision = LOW, meters = NaN" |
Method |
|---|
int compareTo(Distance distance) 与其他distance对象比较估算的距离。 |
Parameters
Name | Description |
|---|---|
distance | 需要估算的distance对象。 |
Returns
Type | Description |
|---|---|
int | 返回比较的结果。 |
Method |
|---|
double getMeters() 获取估算的距离。 |
Returns
Type | Description |
|---|---|
double | 返回估算的距离,单位:米。 |
Method |
|---|
int getPrecision() 获取距离估算的精度。 |
Returns
Type | Description |
|---|---|
int | 返回距离估算的精度。 |
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功