class IAreaCodeManager
interface IAreaCodeManager
|
| Package: | dji.v5.manager.interfaces |
Description:
Class that is used to manage area code. Users can get the current area code through this class.
Supported since MSDK 5.0.0
Class Members:
method getAreaCode
AreaCodeData getAreaCode()
|
| Package: | dji.v5.manager.interfaces |
Description:
Get current area code data.
Supported since MSDK 5.0.0
Return:
method addAreaCodeChangeListener
void addAreaCodeChangeListener(@NonNull AreaCodeChangeListener listener)
|
| Package: | dji.v5.manager.interfaces |
Description:
Add the listener of area code.
Supported since MSDK 5.0.0
method removeAreaCodeChangeListener
void removeAreaCodeChangeListener(@NonNull AreaCodeChangeListener listener)
|
| Package: | dji.v5.manager.interfaces |
Description:
Remove the listener of area code.
Supported since MSDK 5.0.0
method clearAllListeners
| Package: | dji.v5.manager.interfaces |
Description:
Remove all the listeners of area code.
Supported since MSDK 5.0.0
enum AreaCode
| Package: | dji.v5.manager.areacode |
Description:
Aera code class.
Supported since MSDK 5.0.0
Enum Members:
| CHINA | China |
| UNITED_STATES_OF_AMERICA | America |
| FRANCE | France |
| JAPAN | Japan |
Class Members:
enum AreaCodeDataSource
| Package: | dji.v5.manager.areacode |
Description:
Area code source,which is used to get the judgment source of the current area code.
Supported since MSDK 5.0.0
Enum Members:
| UNRELIABLE_SOURCE | The area code database(ac.zip) is illegally changed, and the area code will be returned to "CN". |
| AIRCRAFT_GPS | Judge the area code through the GPS of the aircraft. |
| PHONE_GPS | Judge the area code through the GPS of the phone. |
| MCC | Judge the area code through the MCC of the phone. |
| IP | Judge the area code through server IP. |
| LOW_ACCURACY_GPS | Judge the area code by calculating the nearest neighbor city through GPS, with low reliability. |
| CACHE | Get the area code through the cache. |
Class Members: