InAppMessageJavascriptInterface

class InAppMessageJavascriptInterface(context: Context, inAppMessage: IInAppMessageHtml) : JavascriptInterfaceBase

Used to generate the javascript API in html in-app messages.

Constructors

Link copied to clipboard
constructor(context: Context, inAppMessage: IInAppMessageHtml)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Tracks whether brazeBridge.closeMessage() was called on this interface via onCloseMessageCalled().

Functions

Link copied to clipboard
Link copied to clipboard
fun changeUser(userId: String, sdkAuthSignature: String?)

Changes the current Braze user.

Link copied to clipboard
open override fun logButtonClick(buttonId: String?)

Logs a button click for the given button identifier.

Link copied to clipboard
open override fun logClick()

Logs a click on the message associated with this JavaScript interface.

Link copied to clipboard
fun logCustomEventWithJSON(eventName: String?, propertiesJSON: String?)

Logs a custom event with optional JSON-encoded properties.

Link copied to clipboard
fun logPurchaseWithJSON(productId: String?, price: String, currencyCode: String?, quantity: String, propertiesJSON: String?)

Logs a purchase event with the specified product, price, currency, quantity, and optional JSON-encoded properties.

Link copied to clipboard
fun parseProperties(propertiesJSON: String?): BrazeProperties?
Link copied to clipboard

Requests an immediate flush of any pending analytics data to the Braze servers.

Link copied to clipboard