@Deprecated
public interface IAppboyImageLoader
Modifier and Type | Method and Description |
---|---|
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.
|
void renderUrlIntoInAppMessageView(android.content.Context context, IInAppMessage inAppMessage, java.lang.String imageUrl, android.widget.ImageView imageView, BrazeViewBounds viewBounds)
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.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.void renderUrlIntoCardView(android.content.Context context, Card card, java.lang.String imageUrl, android.widget.ImageView imageView, BrazeViewBounds viewBounds)
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.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.android.graphics.Bitmap getPushBitmapFromUrl(android.content.Context context, android.os.Bundle extras, java.lang.String imageUrl, BrazeViewBounds viewBounds)
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.android.graphics.Bitmap getInAppMessageBitmapFromUrl(android.content.Context context, IInAppMessage inAppMessage, java.lang.String imageUrl, BrazeViewBounds viewBounds)
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.void setOffline(boolean isOffline)
isOffline
- whether this image loader is offline.