Action
Media
Text
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
Package: com.salesforce.marketingcloud.pushmodels.data
Module: Push Models Module v1.0.2
1sealed class Action : ParcelableActions define the behavior of user events on push notifications.
1data class CloudPage(val url: String) : ActionOpens cloud page via a URL in the default browser.
Parameters:
url: String - The URL to the cloud page1data class Deeplink(val url: String) : ActionOpens a deep link via UrlHandler.
Parameters:
url: String - The deep link URL1data class Url(val url: String) : ActionOpens a URL in the default browser.
Parameters:
url: String - The URL to open1object OpenApp : ActionLaunches the integrating app.
1object Dismiss : ActionDismisses the notification.
1enum Type : Enum<Action.Type>Enum representing action types.
1object CompanionCompanion object for the Action class.
1val type: IntThe type identifier for the action.
1fun toJson(): JSONObjectConverts the Action to a JSON representation.
Returns: JSONObject - JSON representation of the action