Class HQVoiceMsgDownloadManager
-
- All Implemented Interfaces:
public class HQVoiceMsgDownloadManager
-
-
Method Summary
Modifier and Type Method Description voidinit(Context context)static HQVoiceMsgDownloadManagergetInstance()voidaddDownloadListener(HQVoiceDownloadListener listener)Add download completion listener. voidremoveDownloadListener(HQVoiceDownloadListener listener)Remove download completion listener. voidenqueue(Fragment fragment, AutoDownloadEntry autoDownloadEntry)voidenqueue(AutoDownloadEntry autoDownloadEntry)voidresumeDownloadService()-
-
Method Detail
-
init
void init(Context context)
-
getInstance
static HQVoiceMsgDownloadManager getInstance()
-
addDownloadListener
void addDownloadListener(HQVoiceDownloadListener listener)
Add download completion listener.
- Parameters:
listener- The listener to be notified when download completes
-
removeDownloadListener
void removeDownloadListener(HQVoiceDownloadListener listener)
Remove download completion listener.
- Parameters:
listener- The listener to be removed
-
enqueue
void enqueue(Fragment fragment, AutoDownloadEntry autoDownloadEntry)
-
enqueue
void enqueue(AutoDownloadEntry autoDownloadEntry)
-
resumeDownloadService
void resumeDownloadService()
-
-
-
-