# 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

###### method getAreaCode

    AreaCodeData getAreaCode()

Package: | dji.v5.manager.interfaces

##### Description:

Get current area code data.
`Supported since MSDK 5.0.0`

##### Return:

AreaCodeData | Return current area code data.

method
addAreaCodeChangeListener

###### 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`

##### Input Parameters:

@NonNull AreaCodeChangeListener listener | Listener of area code.

method
removeAreaCodeChangeListener

###### 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`

##### Input Parameters:

@NonNull AreaCodeChangeListener listener | Listener of area code.

method
clearAllListeners

###### method clearAllListeners

    void clearAllListeners()

Package: | dji.v5.manager.interfaces

##### Description:

Remove all the listeners of area code.
`Supported since MSDK 5.0.0`

##### Related:

enum
AreaCode

###### enum AreaCode

    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:

class
AreaCodeData
enum
AreaCodeDataSource

###### enum AreaCodeDataSource

    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:

class
AreaCodeChangeListener
×

## Search Mobile SDK Document

{{searchCount}} Results

- ### {{{(item.highlights && item.highlights.title) || item.title}}}

  {{{(item.highlights && item.highlights.content[0]) || item.title}}}

Load More
Loading...
Not Found