DJI Mobile SDK Documentation

      class DataProtectionManager

      class DataProtectionManager
      Package:dji.sdk.dataprotection
      Description:

      Data Protection Manager. DJI SDK will send 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. This class is accessible before calling registerApp. The UTMISSManager class needs to report flight dynamic data to the UTMISS server in accordance with the policy requirements of the Civil Aviation Administration of China. It is not in this category of management. For details, please refer to the UTMISSManager interface document.

      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 agreeToProductImprovement
      DJIError agreeToProductImprovement(boolean isAgree)
      Package:dji.sdk.dataprotection
      Description:

      Agree or disagree with the product improvement project. Through this project, the DJI device information, mobile device information, and diagnostic and usage data collected through MSDK will be provided to DJI for analysis. This analysis helps DJI improve products and services. DJI will take necessary data protection measures before data analysis.

      Input Parameters:
      boolean isAgreetrue to ageree product improvement project.
      Return:
      DJIErrorThe encountered error if there is any.
      method isAgreeToProductImprovement
      boolean isAgreeToProductImprovement()
      Package:dji.sdk.dataprotection
      Description:

      Gets whether to agree to the product improvement project.

      Return:
      booleantrue if it is agreed to product improvement project.
      method getInstance
      static DataProtectionManager getInstance()
      Package:dji.sdk.dataprotection
      Description:

      Get the singleton instance of the class.

      Return:
      static DataProtectionManagerAn object of DataProtectionManager.