DJI Mobile SDK Documentation

      class DataProtectionManager

      class DataProtectionManager
      Package:dji.sdk.dataprotection
      Description:

      Data Protection Manager. DJI SDK will data to DJI servers in the background in order to complete logics, including data related to user's information. Data Protection Manager can be used to authorize DJI server to access the user-related data. SDK will NOT send the data to DJI server in the background before the authorization. Internet requests triggered by the user manually are not managed by DataProtectionManager. Involved user-related data is listed in the documentation of the interfaces. The authorization is not persistent and each authorization setting will be reset to the default value for each APP's life cycle. This class is accessible before calling registerApp.

      Class Members:
      method authorizeAccessToDJIDeviceHardwareInfo
      @Nullable
      DJIError authorizeAccessToDJIDeviceHardwareInfo(boolean hardwareInfoAuthorized)
      Package:dji.sdk.dataprotection
      Description:

      Authorizes DJI server to access DJI device's hardware information (serial numbers of the aircraft and the remote controller). The serial number will be sent to DJI server for two purposes:
      - DJI SDK analytics: the hashed serial number is used to distinguish statistics from different DJI devices.
      - App Activation: the serial number is used to request the app activation state from the server. When the user is located in China, the serial number is still sent to DJI server for policy reason even it is not authorized by the user. DJI server is NOT authorized by default. However, it is highly recommended to ask the user to authorize it, which can help DJI keep improving SDK.

      Input Parameters:
      boolean hardwareInfoAuthorizedtrue to authorize DJI server to access the data.
      Return:
      @Nullable DJIErrorThe encountered error if there is any.
      method isAccessToDJIDeviceHardwareInfoAuthorized
      boolean isAccessToDJIDeviceHardwareInfoAuthorized()
      Package:dji.sdk.dataprotection
      Description:

      Get the authorization of access to data of type DJI Hardware Information.

      Return:
      booleantrue if it is authorized.
      method isAccessToObfuscatedLocationAuthorized
      boolean isAccessToObfuscatedLocationAuthorized()
      Package:dji.sdk.dataprotection
      Description:

      Get the authorization of access to data of type Obfuscated Location.

      Return:
      booleantrue if it is authorized.
      method getInstance
      static DataProtectionManager getInstance()
      Package:dji.sdk.dataprotection
      Description:

      Get the singleton instance of the class.

      Return:
      static DataProtectionManagerAn object of DataProtectionManager.