DJI Mobile SDK Documentation

      class TransmissionListener

      interface TransmissionListener
      Package:dji.sdk.accessory.speaker
      Description:

      The listener will be notified when the transmission for the audio file starts.

      Class Members:

      Callback Method

      State
      method
      method onStart
      void onStart()
      Package:dji.sdk.accessory.speaker
      Description:

      Called when the transmission starts and the aircraft is ready to receive data of the audio file from the mobile device.

      method onProgress
      void onProgress(int dataSize)
      Package:dji.sdk.accessory.speaker
      Description:

      Called to update the transmission progress. The progress is updated when a chunk of data is received successfully by the aircraft.

      Input Parameters:
      int dataSizeThe accumulated data size of the audio file received by the aircraft.
      method
      method onFinish
      void onFinish(int index)
      Package:dji.sdk.accessory.speaker
      Description:

      Called when the transmission finishes successfully.

      Input Parameters:
      int indexThe index assigned by the aircraft for the new audio file.
      method
      method onFailure
      void onFailure(DJIError error)
      Package:dji.sdk.accessory.speaker
      Description:

      Called when the transmission is interrupted by an error.

      Input Parameters:
      DJIError errorThe possible error during the transmission.