com.aliyun.downloader

## 类 AliDownloaderFactory

- java.lang.Object
- - com.aliyun.downloader.AliDownloaderFactory

-     public class AliDownloaderFactory
      extends java.lang.Object

- - ### 构造器概要

    构造器
    构造器和说明
    `AliDownloaderFactory()`

  - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static AliMediaDownloader` | `create(android.content.Context context)` Create a download task.
    `static int` | `deleteFile(java.lang.String saveDir, java.lang.String vid, java.lang.String format, int index)` Delete a specified video file.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### AliDownloaderFactory

          public AliDownloaderFactory()

  - ### 方法详细资料

    - #### create

          public static AliMediaDownloader create(android.content.Context context)

      Create a download task.
      参数:
        `context` - Context.
      返回:
        The object that you want to download. See AliMediaDownloader.

    - #### deleteFile

          public static int deleteFile(java.lang.String saveDir,
                                       java.lang.String vid,
                                       java.lang.String format,
                                       int index)

      Delete a specified video file. Note: Make sure that the video file is not used by other download tasks.
      参数:
        `saveDir` - The directory where the video file is saved.
        `vid` - The ID of the video.
        `format` - The format of the video.
        `index` - The index of the video.
      返回:
        If the video file is deleted, value 0 is returned.