用户注销时如何清除Picasso缓存

时间:2020-05-23 07:02:42

标签: java android android-layout android-fragments picasso

我使用毕加索

    this.camera.getPicture(options).then(
      (imageData) => {


        const formData = new FormData();

        formData.append('file', imageData);
        let newName = this.randomString(6) + new Date().getTime() + "." + file.type;

        alert(JSON.stringify(formData));

 this.http.post("//localhost:3000/api/v1/Admin/saveAllImages", formData)
        .pipe(
            finalize(() => {
                // loading.dismiss();
            })
        )
        .subscribe(res => {
            if (res['success']) {
                this.presentToast('File upload complete.')
            } else {
                this.presentToast('File upload failed.')
            }
        });
    };

}

我要在用户注销时清除所有缓存的图像。

0 个答案:

没有答案