public static class MyLocationData.Builder
extends java.lang.Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
MyLocationData.Builder |
accuracy(float accuracy)
设置定位数据的精度信息,单位:米
|
MyLocationData |
build()
构建生成定位数据对象
|
MyLocationData.Builder |
direction(float direction)
设置定位数据的方向信息
|
MyLocationData.Builder |
latitude(double lat)
设置定位数据的纬度
|
MyLocationData.Builder |
longitude(double lng)
设置定位数据的经度
|
MyLocationData.Builder |
satellitesNum(int num)
设置定位数据的卫星数目
|
MyLocationData.Builder |
speed(float speed)
设置定位数据的速度
|
public MyLocationData.Builder latitude(double lat)
lat
- 纬度public MyLocationData.Builder longitude(double lng)
lng
- 经度public MyLocationData.Builder speed(float speed)
speed
- 速度public MyLocationData.Builder direction(float direction)
direction
- 方向public MyLocationData.Builder accuracy(float accuracy)
accuracy
- 精度信息,单位:米public MyLocationData.Builder satellitesNum(int num)
num
- 卫星数目public MyLocationData build()