Interface Info |
|---|
public interface LocationSource 定义了一个位置源,为地图提供定位数据。 HuaweiMap对象使用activate(LocationSource.OnLocationChangedListener listener)激活位置源,并监听位置的更新。 |
Qualifier and Type | Class Name and Description |
|---|---|
public interface | LocationSource.OnLocationChangedListener 位置改变侦听器。 |
Qualifier and Type | Method Name and Description |
|---|---|
abstract void | activate(LocationSource.OnLocationChangedListener listener) 激活位置源,并侦听位置更新。 |
abstract void | 停用位置源。 |
Method |
|---|
public abstract void activate(LocationSource.OnLocationChangedListener listener) 您调用此API可以激活位置源,并侦听位置更新。 |
Parameters
Name | Description |
|---|---|
listener | 位置改变侦听器。 |