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.
method getUploadType
UploadType getUploadType ()
Package: dji.v5.manager.aircraft.megaphone
Description:
To get the file type transferred.
Return:
method setFile
Package: dji.v5.manager.aircraft.megaphone
Description:
To set the path of the audio file that needs to be transferred to the megaphone.
File file The path of the audio file that needs to be transferred to the megaphone.
method 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:
File Return the path of the audio file that needs to be transferred to the megaphone.
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.
byte[] data The TTS binary data that needs to be transmitted to the megaphone.
method 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.