I’m trying to use Picasso (Picasso) to load images.
To get Picasso to return a bitmap, instead of using a passed in view, this must be done in native code:
Picasso.with(this)
.load(url)
.into(new Target() {
@Override
public void onBitmapLoaded (final Bitmap bitmap, Picasso.LoadedFrom from){
/* Save the bitmap or do something with it here */
}
});
I’m trying to call it from Unity so I can simply include the Picasso JAR file. Can it be done somehow?