public interface LocationSource
Modifier and Type | Interface and Description |
---|---|
static interface |
LocationSource.OnLocationChangedListener
当我的位置有变化时,调用的接口。
|
Modifier and Type | Method and Description |
---|---|
void |
activate(LocationSource.OnLocationChangedListener onlocationchangedlistener)
设置位置变化回调接口
|
void |
deactivate()
取消位置变化回调
|
void activate(LocationSource.OnLocationChangedListener onlocationchangedlistener)
onlocationchangedlistener
- 位置变化回调接口,参见 LocationSource.OnLocationChangedListener
void deactivate()