DefaultBrazeImageLoader instead.@Deprecated public class AppboyLruImageLoader extends java.lang.Object implements IBrazeImageLoader
| Constructor and Description |
|---|
AppboyLruImageLoader(android.content.Context context)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteStoredData(android.content.Context context)
Deprecated.
Deletes the stored data generated from an instance of this class from the device's internal storage.
|
android.graphics.Bitmap |
getInAppMessageBitmapFromUrl(android.content.Context context,
IInAppMessage inAppMessage,
java.lang.String imageUrl,
BrazeViewBounds viewBounds)
Deprecated.
Attempts to retrieve the bitmap representing the imageUrl's image from the imageLoader's caches.
|
android.graphics.Bitmap |
getPushBitmapFromUrl(android.content.Context context,
android.os.Bundle extras,
java.lang.String imageUrl,
BrazeViewBounds viewBounds)
Deprecated.
Attempts to retrieve the bitmap representing the imageUrl's image from the imageLoader's caches.
|
void |
renderUrlIntoCardView(android.content.Context context,
Card card,
java.lang.String imageUrl,
android.widget.ImageView imageView,
BrazeViewBounds viewBounds)
Deprecated.
Renders the image for a News Feed or Content Card at the imageUrl into the
ImageView. |
void |
renderUrlIntoInAppMessageView(android.content.Context context,
IInAppMessage inAppMessage,
java.lang.String imageUrl,
android.widget.ImageView imageView,
BrazeViewBounds viewBounds)
Deprecated.
Renders the image for an
IInAppMessage at the imageUrl into the ImageView. |
void |
setOffline(boolean isOffline)
Deprecated.
Set this image loader offline.
|
public AppboyLruImageLoader(android.content.Context context)
public void renderUrlIntoCardView(android.content.Context context,
Card card,
java.lang.String imageUrl,
android.widget.ImageView imageView,
BrazeViewBounds viewBounds)
IAppboyImageLoaderImageView.
If the image's bitmap is not already cached, the bitmap should
be retrieved directly from the URL and the bitmap will be cached.
This method may be called from the UI thread.renderUrlIntoCardView in interface IAppboyImageLoadercontext - The application context.card - The Card this image is being rendered for.imageUrl - The url of the image to be rendered into the imageView.imageView - The imageView object that will contain the image.viewBounds - The bounds for the destination view. If null, no remote bitmap sampling will occur.public void renderUrlIntoInAppMessageView(android.content.Context context,
IInAppMessage inAppMessage,
java.lang.String imageUrl,
android.widget.ImageView imageView,
BrazeViewBounds viewBounds)
IAppboyImageLoaderIInAppMessage at the imageUrl into the ImageView.
If the image's bitmap is not already cached, the bitmap should
be retrieved directly from the URL and the bitmap will be cached.
This method may be called from the UI thread.renderUrlIntoInAppMessageView in interface IAppboyImageLoadercontext - The application context.inAppMessage - The IInAppMessage this image is being rendered for.imageUrl - The url of the image to be rendered into the imageView.imageView - The imageView object that will contain the image.viewBounds - The bounds for the destination view. If null, no remote bitmap sampling will occur.public android.graphics.Bitmap getPushBitmapFromUrl(android.content.Context context,
android.os.Bundle extras,
java.lang.String imageUrl,
BrazeViewBounds viewBounds)
IAppboyImageLoadergetPushBitmapFromUrl in interface IAppboyImageLoadercontext - The application context.extras - Any custom KVP 'extras' associated with the push notification as provided by the client.imageUrl - The url of the image whose bitmap is being retrieved.viewBounds - The bounds for the destination view. If null, no remote bitmap sampling will occur.public android.graphics.Bitmap getInAppMessageBitmapFromUrl(android.content.Context context,
IInAppMessage inAppMessage,
java.lang.String imageUrl,
BrazeViewBounds viewBounds)
IAppboyImageLoadergetInAppMessageBitmapFromUrl in interface IAppboyImageLoadercontext - The application context.inAppMessage - The IInAppMessage this image is being rendered for.imageUrl - The url of the image whose bitmap is being retrieved.viewBounds - The bounds for the destination view. If null, no remote bitmap sampling will occur.public void setOffline(boolean isOffline)
IAppboyImageLoadersetOffline in interface IAppboyImageLoaderisOffline - whether this image loader is offline.public static void deleteStoredData(android.content.Context context)