DJI Mobile SDK Documentation

      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:
      AreaCodeDataReturn current area code data.
      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 listenerListener of area code.
      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 listenerListener of area code.
      method clearAllListeners
      void clearAllListeners()
      Package:dji.v5.manager.interfaces
      Description:

      Remove all the listeners of area code.

      Supported since MSDK 5.0.0

      enum AreaCode
      enum AreaCode
      Package:dji.v5.manager.areacode
      Description:

      Aera code class.

      Supported since MSDK 5.0.0

      Enum Members:
      CHINAChina
      UNITED_STATES_OF_AMERICAAmerica
      FRANCEFrance
      JAPANJapan
      Class Members:
      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_SOURCEThe area code database(ac.zip) is illegally changed, and the area code will be returned to "CN".
      AIRCRAFT_GPSJudge the area code through the GPS of the aircraft.
      PHONE_GPSJudge the area code through the GPS of the phone.
      MCCJudge the area code through the MCC of the phone.
      IPJudge the area code through server IP.
      LOW_ACCURACY_GPSJudge the area code by calculating the nearest neighbor city through GPS, with low reliability.
      CACHEGet the area code through the cache.
      Class Members: