public static interface PlayerService.NotificationView.BetterIconLoader
MusicItem
对象的 Icon 图片。void loadIcon(@NonNull MusicItem musicItem, int width, int height, @NonNull AsyncResult<android.graphics.Bitmap> result)
MusicItem
对象的 Icon 图片。
该方法会在异步线程中调用,因此你可以在该方法中执行耗时任务,例如访问网络或者文件。
musicItem
- 要加载图片的 MusicItem
对象,不为 nullwidth
- 图片的期望宽度height
- 图片的期望高度result
- 用于接收异步任务的结果值,不为 null