public class AliDownloaderFactory
extends java.lang.Object
AliMediaDownloader.
This class serves as the standard entry point for using the download functionality.| Constructor and Description |
|---|
AliDownloaderFactory() |
| Modifier and Type | Method and Description |
|---|---|
static AliMediaDownloader |
create(android.content.Context context)
Creates a media downloader instance.
|
static int |
deleteFile(java.lang.String saveDir,
java.lang.String vid,
java.lang.String format,
int index)
Deletes a specified downloaded file.
|
public static AliMediaDownloader create(android.content.Context context)
context - The Android Context. Its ApplicationContext will be used internally to prevent memory leaks.AliMediaDownloader.public static int deleteFile(java.lang.String saveDir,
java.lang.String vid,
java.lang.String format,
int index)
saveDir - The directory where the file is saved.vid - The ID of the video.format - The format of the video, such as "mp4" or "m3u8".index - The track index selected for the download.AliMediaDownloader.deleteFile(String, String, String, int)