DJI Mobile SDK Documentation

      class AudioFileInfo

      class AudioFileInfo
      Package:dji.sdk.accessory.speaker
      Description:

      The class contains the basic information of an audio file.

      Class Members:
      Constructor
      method
      method AudioFileInfo
      AudioFileInfo(String fileName, SettingsDefinitions.AudioStorageLocation storageLocation)
      Package:dji.sdk.accessory.speaker
      Description:

      Creates an AudioFileInfo instance with a file name and the storage location on the aircraft.

      Input Parameters:
      String fileNameThe file name of the file. It will be used by the aircraft to store the file after it is successfully transmitted. A file name should not exceed 20 characters.
      SettingsDefinitions.AudioStorageLocation storageLocationThe storage location of the file. The aircraft will use it to determine where to store the file.
      File Name
      method
      method getFileName
      String getFileName()
      Package:dji.sdk.accessory.speaker
      Description:

      The file name of the audio file. The aircraft will store the audio file with this file name.

      Return:
      StringA String value.
      Storage Location
      method
      method getStorageLocation
      SettingsDefinitions.AudioStorageLocation getStorageLocation()
      Package:dji.sdk.accessory.speaker
      Description:

      The storage type of the audio file. The storage types will determine the strategy of the aircraft to keep the file.

      Return:
      SettingsDefinitions.AudioStorageLocationAn enum value of the AudioStorageLocation.