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
method 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.
int dataSize | The accumulated data size of the audio file received by the aircraft. |
method onFinish
Package: | dji.sdk.accessory.speaker |
Description:
Called when the transmission finishes successfully.
int index | The index assigned by the aircraft for the new audio file. |
method onFailure
void onFailure(DJIError error)
|
Package: | dji.sdk.accessory.speaker |
Description:
Called when the transmission is interrupted by an error.
DJIError error | The possible error during the transmission. |