-
- All Implemented Interfaces:
-
com.clevertap.android.sdk.interfaces.AudibleNotification,com.clevertap.android.sdk.pushnotification.INotificationRenderer
public final class TemplateRenderer implements INotificationRenderer, AudibleNotification
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumTemplateRenderer.LogLevelpublic classTemplateRenderer.Companion
-
Constructor Summary
Constructors Constructor Description TemplateRenderer(Context context, Bundle extras, CleverTapInstanceConfig config)
-
Method Summary
Modifier and Type Method Description StringgetMessage(Bundle extras)StringgetTitle(Bundle extras, Context context)NotificationCompat.BuilderrenderNotification(Bundle extras, Context context, NotificationCompat.Builder nb, CleverTapInstanceConfig config, Integer notificationId)UnitsetSmallIcon(Integer smallIcon, Context context)StringgetActionButtonIconKey()ObjectgetCollapseKey(Bundle extras)NotificationCompat.BuildersetSound(Context context, Bundle extras, NotificationCompat.Builder nb, CleverTapInstanceConfig config)NotificationCompat.BuildersetActionButtons(Context context, Bundle extras, Integer notificationId, NotificationCompat.Builder nb, JSONArray actions)-
-
Method Detail
-
getMessage
String getMessage(Bundle extras)
-
renderNotification
NotificationCompat.Builder renderNotification(Bundle extras, Context context, NotificationCompat.Builder nb, CleverTapInstanceConfig config, Integer notificationId)
-
setSmallIcon
Unit setSmallIcon(Integer smallIcon, Context context)
-
getActionButtonIconKey
String getActionButtonIconKey()
-
getCollapseKey
Object getCollapseKey(Bundle extras)
-
setSound
NotificationCompat.Builder setSound(Context context, Bundle extras, NotificationCompat.Builder nb, CleverTapInstanceConfig config)
-
setActionButtons
NotificationCompat.Builder setActionButtons(Context context, Bundle extras, Integer notificationId, NotificationCompat.Builder nb, JSONArray actions)
-
-
-
-