@Deprecated
public abstract static class PlayerService.NotificationView.IconLoader
extends java.lang.Object
PlayerService.NotificationView.BetterIconLoader
代替。
用于加载 MusicItem
对象的 Icon 图片。
限定符和类型 | 类和说明 |
---|---|
static interface |
PlayerService.NotificationView.IconLoader.Callback
已过时。
|
构造器和说明 |
---|
IconLoader(android.graphics.Bitmap defaultIcon)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
abstract void |
cancel()
已过时。
取消加载。
|
android.graphics.Bitmap |
getDefaultIcon()
已过时。
获取默认图片,该图片会在加载失败时返回。
|
int |
getHeight()
已过时。
获取图片高度。
|
int |
getWidth()
已过时。
获取图片的宽度。
|
abstract void |
loadIcon(MusicItem musicItem,
PlayerService.NotificationView.IconLoader.Callback callback)
已过时。
加载图片。
|
void |
setDefaultIcon(android.graphics.Bitmap bitmap)
已过时。
设置默认图片,并在图片加载失败时返回该默认图片。
|
void |
setHeight(int height)
已过时。
设置图片高度(便于自动采样以降低内存占用)。
|
void |
setWidth(int width)
已过时。
设置图片的宽度(便于自动采样以降低内存占用)。
|
public abstract void loadIcon(@NonNull MusicItem musicItem, @NonNull PlayerService.NotificationView.IconLoader.Callback callback)
public abstract void cancel()
public void setWidth(int width)
public int getWidth()
public void setHeight(int height)
public int getHeight()
public void setDefaultIcon(@NonNull android.graphics.Bitmap bitmap)
@NonNull public android.graphics.Bitmap getDefaultIcon()