Package com.marigold.sdk
Class NotificationExtender
-
- All Implemented Interfaces:
-
androidx.core.app.NotificationCompat.Extender
public class NotificationExtender implements NotificationCompat.Extender
Styles a standard Marigold Notification, optionally with a given Message.
-
-
Constructor Summary
Constructors Constructor Description NotificationExtender()
-
Method Summary
Modifier and Type Method Description NotificationExtender
setMessage(Message message)
Sets the Message to format the notification with. NotificationCompat.Builder
extend(NotificationCompat.Builder builder)
Apply this extender to a notification builder. Bitmap
fetchImageForMessage(String imageUrl)
Synchronously fetches an Image. -
-
Method Detail
-
setMessage
NotificationExtender setMessage(Message message)
Sets the Message to format the notification with.
- Parameters:
message
- The Message attributed to this notification.- Returns:
this NotificationExtender for chaining.
-
extend
NotificationCompat.Builder extend(NotificationCompat.Builder builder)
Apply this extender to a notification builder.
- Parameters:
builder
- the builder to be modified.- Returns:
the build object for chaining.
-
fetchImageForMessage
Bitmap fetchImageForMessage(String imageUrl)
Synchronously fetches an Image.
- Parameters:
imageUrl
- The image's URL.- Returns:
The Bitmap of the image.
-
-
-
-