CallBacks - abbashosseini/Vinci GitHub Wiki

if you are wanna get bitmap or get Exception if is happen during loading when you request image from the net you have to implement Request interface and then you free to get bitmap or exception from your request


public class tab extends RecyclerView.Adapter<tab1.ViewHolder> implements Request{

    @Override
    public void onBindViewHolder(final ViewHolder viewHolder, final int i) {

        String uri = mItems.get(i);

        Vinci
            .base(context)
            .process()
            .load(uri, this);

    }

    @Override
    public void onSuccess(Bitmap bitmap) {
        //bitmap
    }

    @Override
    public void onFailure(Throwable e) {
      //exception
    }
}