-
- All Implemented Interfaces:
-
com.clevertap.android.sdk.interfaces.AudibleNotification,com.clevertap.android.sdk.pushnotification.INotificationRenderer
@RestrictTo(value = RestrictTo.Scope.LIBRARY) public class CoreNotificationRenderer implements INotificationRenderer, AudibleNotification
-
-
Field Summary
Fields Modifier and Type Field Description private intsmallIcon
-
Method Summary
Modifier and Type Method Description voidsetSmallIcon(int smallIcon, Context context)ObjectgetCollapseKey(Bundle extras)StringgetMessage(Bundle extras)StringgetTitle(Bundle extras, Context context)NotificationCompat.BuilderrenderNotification(Bundle extras, Context context, NotificationCompat.Builder nb, CleverTapInstanceConfig config, int notificationId)voidaddActions(Bundle extras, Context context, NotificationCompat.Builder nb, CleverTapInstanceConfig config, int notificationId)StringgetActionButtonIconKey()NotificationCompat.BuildersetSound(Context context, Bundle extras, NotificationCompat.Builder nb, CleverTapInstanceConfig config)-
Methods inherited from class com.clevertap.android.sdk.pushnotification.INotificationRenderer
getMessage, getTitle, renderNotification, setActionButtons, setSmallIcon -
Methods inherited from class com.clevertap.android.sdk.interfaces.AudibleNotification
setSound -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setSmallIcon
void setSmallIcon(int smallIcon, Context context)
-
getCollapseKey
@Nullable() Object getCollapseKey(Bundle extras)
-
getMessage
String getMessage(Bundle extras)
-
renderNotification
NotificationCompat.Builder renderNotification(Bundle extras, Context context, NotificationCompat.Builder nb, CleverTapInstanceConfig config, int notificationId)
-
addActions
void addActions(Bundle extras, Context context, NotificationCompat.Builder nb, CleverTapInstanceConfig config, int notificationId)
-
getActionButtonIconKey
String getActionButtonIconKey()
-
setSound
NotificationCompat.Builder setSound(Context context, Bundle extras, NotificationCompat.Builder nb, CleverTapInstanceConfig config)
-
-
-
-