Mo Engage Notification Utils
class MoEngageNotificationUtils
Content copied to clipboard
Utility class for Notifications sent from MoEngage platform.
Author
MoEngage (abhishek@moengage.com)
Functions
addAttributesToProperties
Link copied to clipboard
open fun addAttributesToProperties(payload: Bundle, properties: Properties)
Content copied to clipboard
addNotificationToInboxIfRequired
Link copied to clipboard
open fun addNotificationToInboxIfRequired(context: Context, extras: Bundle)
Content copied to clipboard
convertBundleToJsonString
Link copied to clipboard
deleteImagesIfRequired
Link copied to clipboard
getIntentForSnooze
Link copied to clipboard
open fun getIntentForSnooze(context: Context, payloadBundle: Bundle, notificationId: Int): Intent
Content copied to clipboard
getRedirectIntent
Link copied to clipboard
open fun getRedirectIntent(context: Context, payloadBundle: Bundle, notificationId: Int): Intent
Content copied to clipboard
isNotificationChannelExists
Link copied to clipboard
open fun isNotificationChannelExists(context: Context, channelId: String): Boolean
Content copied to clipboard
isReNotification
Link copied to clipboard
logNotificationClick
Link copied to clipboard
logNotificationImpression
Link copied to clipboard
scaleLandscapeBitmap
Link copied to clipboard
open fun scaleLandscapeBitmap(context: Context, imageBitmap: Bitmap): Bitmap
Content copied to clipboard
transformToPx
Link copied to clipboard
updateClickToInbox
Link copied to clipboard