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)
IAppboyImageLoader
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.renderUrlIntoCardView
in interface IAppboyImageLoader
context
- 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)
IAppboyImageLoader
IInAppMessage
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 IAppboyImageLoader
context
- 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)
IAppboyImageLoader
getPushBitmapFromUrl
in interface IAppboyImageLoader
context
- 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)
IAppboyImageLoader
getInAppMessageBitmapFromUrl
in interface IAppboyImageLoader
context
- 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)
IAppboyImageLoader
setOffline
in interface IAppboyImageLoader
isOffline
- whether this image loader is offline.public static void deleteStoredData(android.content.Context context)