Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有没有判断当前图片已经展示之后的api #39

Open
shexianseng opened this issue Feb 5, 2018 · 3 comments
Open

有没有判断当前图片已经展示之后的api #39

shexianseng opened this issue Feb 5, 2018 · 3 comments

Comments

@shexianseng
Copy link

加载结束 也可能未展示图片 有没有展示成功这种类型的api 🙏

@LuckyJayce
Copy link
Owner

加载过程:加载图片大小信息,加载全图的缩略图,加载多个图片块
你要哪个事件回调啊

@shexianseng
Copy link
Author

shexianseng commented Feb 5, 2018

这个回调 应该可以打到我的目标 这个方法是加载完成后的回调吗 是您上面列举的哪一种类型 还是理解错误 ?
image

@LuckyJayce
Copy link
Owner

public interface OnLoadStateChangeListener {

    void onLoadStart(int loadType, Object param);

    void onLoadFinished(int loadType, Object param, boolean success, Throwable throwable);
}

public static final int LOAD_TYPE_INFO = 0;
public static final int LOAD_TYPE_THUMBNAIL = 1;
public static final int LOAD_TYPE_BLOCK = 2;

onLoadFinished 中的loadType就是上面三种类型

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants