Skip to content
/ Goster Public

Url Image management library for android. You can download, set image

Notifications You must be signed in to change notification settings

adem666/Goster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Goster

Url Image management library for android. You can download, set image

It should be initialised once before it is used first time.

Goster.init(context,new File(""+context.getCacheDir()),7*24*60*60,3*1024*1024,"uimage");

Then, you can use bunch of features on it. It is not singleton. It always create an instance per job. It starts to download, decode and set when you push the changes into a image view.

Goster gst = Goster.with(context)
					.load(imageurl)
					.cache(true)
					.fade(true)
					.into(imageView);

You can get image actual path in disk with getSavingPath().

String imageSavingPath = gst.getSavingPath();

You have to check it is null or not. If it is null, it can be not downloaded yet, or it can not be downloaded.

Also, you can set a callback to detect image is set or not

Goster.with(activity)
			.load(imageurl)
			.fade(true)
			.into(image,new Goster.Callback() {
				@Override
				public void onSuccess(Goster gst, ImageView imageView) {
					
				}
				
				@Override
				public void onError() {
					
				}
			});

About

Url Image management library for android. You can download, set image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages