DJI Mobile SDK Documentation

      class FileInfo

      class FileInfo
      Package:dji.v5.manager.aircraft.megaphone
      Description:

      The file information class for the file transfer method, including the types, data and files that need to be transferred.

      Supported since MSDK 5.0.0

      Class Members:
      method setUploadType
      void setUploadType(UploadType uploadType)
      Package:dji.v5.manager.aircraft.megaphone
      Description:

      To set the file type transferred, including local audio file data type and TTS binary data type. When the type is local audio file data, you need to call setFile to set the local audio file path. When the type is TTS binary data, you need to call setData to set the TTS binary data.

      Input Parameters:
      UploadType uploadTypeFile type transferred.
      method getUploadType
      UploadType getUploadType()
      Package:dji.v5.manager.aircraft.megaphone
      Description:

      To get the file type transferred.

      Return:
      UploadTypeReturn the file type transferred.
      method
      method setFile
      void setFile(File file)
      Package:dji.v5.manager.aircraft.megaphone
      Description:

      To set the path of the audio file that needs to be transferred to the megaphone.

      Input Parameters:
      File fileThe path of the audio file that needs to be transferred to the megaphone.
      method
      method getFile
      File getFile()
      Package:dji.v5.manager.aircraft.megaphone
      Description:

      To get the path of the audio file that needs to be transferred to the megaphone.

      Return:
      FileReturn the path of the audio file that needs to be transferred to the megaphone.
      method
      method setData
      void setData(byte[] data)
      Package:dji.v5.manager.aircraft.megaphone
      Description:

      To set the TTS binary data that needs to be transmitted to the megaphone.

      Input Parameters:
      byte[] dataThe TTS binary data that needs to be transmitted to the megaphone.
      method
      method getData
      byte[] getData()
      Package:dji.v5.manager.aircraft.megaphone
      Description:

      To get the TTS binary data that needs to be transmitted to the megaphone.

      Return:
      byte[]Return the TTS binary data that needs to be transmitted to the megaphone.