Package com.cmput301w23t09.qrhunter.util
Class VisualFetcher
- java.lang.Object
-
- android.os.AsyncTask<java.lang.String,java.lang.Void,android.graphics.Bitmap>
-
- com.cmput301w23t09.qrhunter.util.VisualFetcher
-
public class VisualFetcher extends android.os.AsyncTask<java.lang.String,java.lang.Void,android.graphics.Bitmap>
Fetches QRCode's visual representation and profile pictures from DiceBear (https://www.dicebear.com) License: MITArt Styles Used:
- Botts Neutral by Pablo Stanley (https://twitter.com/pablostanley) (License: Free for personal/commercial use)
- Identicon by Florian Körner (contact@florian-koerner.com) (License: CC BY)
API Call Code was adapted from: Source: https://stackoverflow.com/questions/24399294/android-asynctask-to-make-an-http-get-request By: Rishabh Dixit (https://stackoverflow.com/users/6940935/rishabh-dixit) (03/09/17) License: cc-wiki
Source: https://www.digitalocean.com/community/tutorials/android-asynctask-example-tutorial By: Anupam Chugh (09/03/22) License: CC BY-NC-SA 4.0
Source: https://stackoverflow.com/questions/62585357/how-to-print-read-image-from-rest-api-call-using-java By: abk (https://stackoverflow.com/users/3500996/abk) (03/24/21) Licsense: cc-wiki
Again, all the code was by andy-mtng (Andy Nguyen's) but git blamed on jmmabanta who integrated his feature.
-
-
Constructor Summary
Constructors Constructor Description VisualFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected android.graphics.Bitmap
doInBackground(java.lang.String... urls)
int
getResponseCode()
Retrieve the response code of the HTTP request
-
-
-
Method Detail
-
doInBackground
protected android.graphics.Bitmap doInBackground(java.lang.String... urls)
- Specified by:
doInBackground
in classandroid.os.AsyncTask<java.lang.String,java.lang.Void,android.graphics.Bitmap>
-
getResponseCode
public int getResponseCode()
Retrieve the response code of the HTTP request- Returns:
- response code
-
-