Java 类com.parse.ProgressCallback 实例源码

项目:RxParse    文件:ParseObservable.java   
@NonNull
@CheckReturnValue
public static Single<byte[]> getData(@NonNull final ParseFile file, @NonNull final ProgressCallback progressCallback) {
    return RxTask.single(() -> file.getDataInBackground(progressCallback));
}
项目:RxParse    文件:ParseObservable.java   
@NonNull
@CheckReturnValue
public static Single<InputStream> getDataStream(@NonNull final ParseFile file, @NonNull final ProgressCallback progressCallback) {
    return RxTask.single(() -> file.getDataStreamInBackground(progressCallback));
}
项目:RxParse    文件:ParseObservable.java   
@NonNull
@CheckReturnValue
public static Single<File> getFile(@NonNull final ParseFile file, @NonNull final ProgressCallback progressCallback) {
    return RxTask.single(() -> file.getFileInBackground(progressCallback));
}
项目:RxParse    文件:ParseObservable.java   
@NonNull
public static Completable save(@NonNull final ParseFile file, @NonNull final ProgressCallback uploadProgressCallback) {
    return RxTask.completable(() -> file.saveInBackground(uploadProgressCallback));
}