Object NotificationBuilder
-
- All Implemented Interfaces:
public class NotificationBuilderPublic facing object to construct a NotificationCompat.Builder object for the specified PushTemplateType. The constructNotificationBuilder methods will build the appropriate notification based on the provided AEPPushTemplate or Intent.
-
-
Field Summary
Fields Modifier and Type Field Description public final static NotificationBuilderINSTANCE
-
Method Summary
Modifier and Type Method Description final static Stringversion()final static NotificationCompat.BuilderconstructNotificationBuilder(Map<String, String> messageData, Class<out Activity> trackerActivityClass, Class<out BroadcastReceiver> broadcastReceiverClass)Constructs a NotificationCompat.Builder object from the provided messageData final static NotificationCompat.BuilderconstructNotificationBuilder(Intent intent, Class<out Activity> trackerActivityClass, Class<out BroadcastReceiver> broadcastReceiverClass)Constructs a NotificationCompat.Builder object from the provided intent -
-
Method Detail
-
constructNotificationBuilder
final static NotificationCompat.Builder constructNotificationBuilder(Map<String, String> messageData, Class<out Activity> trackerActivityClass, Class<out BroadcastReceiver> broadcastReceiverClass)
Constructs a NotificationCompat.Builder object from the provided messageData
- Parameters:
messageData- Map containing the data needed for the notification constructiontrackerActivityClass- Class of the Activity to be launched when the notification is clickedbroadcastReceiverClass- Class of the BroadcastReceiver to be used for handling notification actions- Returns:
NotificationCompat.Builder object
-
constructNotificationBuilder
final static NotificationCompat.Builder constructNotificationBuilder(Intent intent, Class<out Activity> trackerActivityClass, Class<out BroadcastReceiver> broadcastReceiverClass)
Constructs a NotificationCompat.Builder object from the provided intent
- Parameters:
intent- Intent containing the data needed for the notification constructiontrackerActivityClass- Class of the Activity to be launched when the notification is clickedbroadcastReceiverClass- Class of the BroadcastReceiver to be used for handling notification actions- Returns:
NotificationCompat.Builder object
-
-
-
-