Companion

object Companion

Properties

Link copied to clipboard
internal const val DEFAULT_PUSH_DELIVERY_MAX_FLUSH: Long = 120
Link copied to clipboard
internal const val DEFAULT_PUSH_DELIVERY_MIN_FLUSH: Long = 5

Functions

Link copied to clipboard
fun getAttachedBrazeExtras(notificationExtras: Bundle?): Bundle

Get the extras Bundle from the notification extras or an empty bundle.

Link copied to clipboard
fun getPushStoryGravityAtIndex(actionIndex: Int, notificationExtras: Bundle, actionFieldKeyTemplate: String): Int
Link copied to clipboard
fun getTemplateFieldAtIndex(index: Int, notificationExtras: Bundle, actionFieldKeyTemplate: String): String?
fun getTemplateFieldAtIndex(index: Int, notificationExtras: Bundle, actionFieldKeyTemplate: String, defaultValue: String?): String?

Returns the value for the given template field key at the specified index.

fun getTemplateFieldAtIndex(actionIndex: Int, notificationExtras: Bundle, actionFieldKeyTemplate: String, defaultValue: Boolean): Boolean
fun getTemplateFieldAtIndex(actionIndex: Int, notificationExtras: Bundle, actionFieldKeyTemplate: String, defaultValue: Long): Long

Returns the boolean value for the given template field key at the specified index.

Link copied to clipboard
fun parseLong(bundle: Bundle, key: String): Long?
Link copied to clipboard
fun parseNonBlankString(bundle: Bundle, key: String): String?
Link copied to clipboard
fun parseObjectAsInteger(bundle: Bundle, key: String, defaultValue: Int): Int
Link copied to clipboard
fun parseString(bundle: Bundle, key: String): String?
Link copied to clipboard
fun parseStringAsBoolean(bundle: Bundle, key: String): Boolean
Link copied to clipboard
fun parseStringAsColorInt(bundle: Bundle, key: String): Int?
Link copied to clipboard
fun parseStringAsInteger(bundle: Bundle, key: String): Int?
Link copied to clipboard
fun parseStringAsLong(bundle: Bundle, key: String): Long?
Link copied to clipboard
private fun stringAndKey(prefix: String, value: Any?): String