laoyuyu
2019-03-07 21:44:32 +08:00
parent d8a14c0086
commit 0f9f2577b8
120 changed files with 10595 additions and 307 deletions

View File

@@ -22,7 +22,7 @@ import java.lang.annotation.Target;
/**
* Created by lyy on 2017/6/6.
* Aria下载事件被注解的方法中参数仅能有一个参数类型为{@link com.arialyy.aria.core.download.DownloadGroupTask}
* Aria下载事件被注解的方法中参数仅能有一个参数类型为 com.arialyy.aria.core.download.DownloadGroupTask
* <pre>
* <code>
* {@literal @}DownloadGroup.onPre(groupHash)
@@ -46,70 +46,70 @@ import java.lang.annotation.Target;
@Retention(RetentionPolicy.CLASS) @Target(ElementType.METHOD) public @interface DownloadGroup {
/**
* {@code @Download.onPre}注解,队列已经满了,继续创建新任务,将会回调该方法
* " @Download.onPre"解,队列已经满了,继续创建新任务,将会回调该方法
*/
@Retention(RetentionPolicy.CLASS) @Target(ElementType.METHOD) @interface onWait {
String[] value() default { AriaConstance.NO_URL };
}
/**
* {@code @DownloadGroup.onPre}注在预处理完成时Aria会调用该方法
* " @DownloadGroup.onPre"在预处理完成时Aria会调用该方法
*/
@Retention(RetentionPolicy.CLASS) @Target(ElementType.METHOD) @interface onPre {
String[] value() default { AriaConstance.NO_URL };
}
/**
* {@code @DownloadGroup.onTaskPre}注在任务预处理完成时Aria会调用该方法
* " @DownloadGroup.onTaskPre"在任务预处理完成时Aria会调用该方法
*/
@Retention(RetentionPolicy.CLASS) @Target(ElementType.METHOD) @interface onTaskPre {
String[] value() default { AriaConstance.NO_URL };
}
/**
* {@code @DownloadGroup.onTaskResume}注在任务恢复下载时Aria会调用该方法
* " @DownloadGroup.onTaskResume"在任务恢复下载时Aria会调用该方法
*/
@Retention(RetentionPolicy.CLASS) @Target(ElementType.METHOD) @interface onTaskResume {
String[] value() default { AriaConstance.NO_URL };
}
/**
* {@code @DownloadGroup.onTaskStart}注在任务开始下载时Aria会调用该方法
* " @DownloadGroup.onTaskStart"在任务开始下载时Aria会调用该方法
*/
@Retention(RetentionPolicy.CLASS) @Target(ElementType.METHOD) @interface onTaskStart {
String[] value() default { AriaConstance.NO_URL };
}
/**
* {@code @DownloadGroup.onTaskStop}注在任务停止时Aria会调用该方法
* " @DownloadGroup.onTaskStop"在任务停止时Aria会调用该方法
*/
@Retention(RetentionPolicy.CLASS) @Target(ElementType.METHOD) @interface onTaskStop {
String[] value() default { AriaConstance.NO_URL };
}
/**
* {@code @DownloadGroup.onTaskCancel}l注解在任务取消时Aria会调用该方法
* " @DownloadGroup.onTaskCancel}l注解在任务取消时Aria会调用该方法
*/
@Retention(RetentionPolicy.CLASS) @Target(ElementType.METHOD) @interface onTaskCancel {
String[] value() default { AriaConstance.NO_URL };
}
/**
* {@code @DownloadGroup.onTaskFail)注解在任务预失败时Aria会调用该方法
* " @DownloadGroup.onTaskFail)注解在任务预失败时Aria会调用该方法
*/
@Retention(RetentionPolicy.CLASS) @Target(ElementType.METHOD) @interface onTaskFail {
String[] value() default { AriaConstance.NO_URL };
}
/**
* {@code @DownloadGroup.onTaskComplete}注在任务完成时Aria会调用该方法
* " @DownloadGroup.onTaskComplete"在任务完成时Aria会调用该方法
*/
@Retention(RetentionPolicy.CLASS) @Target(ElementType.METHOD) @interface onTaskComplete {
String[] value() default { AriaConstance.NO_URL };
}
/**
* {@code @DownloadGroup.onTaskRunning}注在任务正在下载Aria会调用该方法
* " @DownloadGroup.onTaskRunning"在任务正在下载Aria会调用该方法
*/
@Retention(RetentionPolicy.CLASS) @Target(ElementType.METHOD) @interface onTaskRunning {
String[] value() default { AriaConstance.NO_URL };